- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2015 08:12 AM
Hi,
I'm trying to test the REST API in order to send requests on the incident table.
Each day I create a test user with the "rest_service" profile on Service Now's sandbox : ServiceNow
I was able to create incidents successfully for 2 days.
But now I get the following error in RESTClient
- Status Code: 401 Unauthorized
- Connection: close
- Content-Encoding: gzip
- Content-Type: application/json
- Date: Fri, 09 Jan 2015 15:54:02 GMT
- Server: ServiceNow
- Transfer-Encoding: chunked
- WWW-Authenticate: BASIC realm="Service-now"
Thanks,
Sovanna
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 02:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2015 08:51 AM
Check if your Username and Password combination is correct or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 01:10 AM
Hi Subhajit,
the username that should be used is the "user id" field right ?
I did verified my password, and actually managed to connect with the "user id" field /password on the login page :
Are you able to create incidents with the REST API on this instance ?
Regards,
Sovanna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 01:17 AM
Try granting him itil role also. If you are trying to create incidents, it makes sense that the user trying to create it has the appropriate permissions to do it.
Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 01:26 AM
Not working either.
I'm using the REST Client from Mozilla :
Method POST
URL : https://sandbox.service-now.com/api/now/table/incident
Headers
- Accept:application/json
- Content-Type:application/json
Basic Auth :
- username : sno_user
- password : sno_user