-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unauthorized access #106
Comments
Hello, This means you're trying to authenticate with incorrect credentials. |
Hi - I'm accessing with correct creds, & I'm facing the 401 issue. If I paste that url in chrome, I get the results. But via pysnow, its a 401 |
Hmm.. strange. Which version of ServiceNow are you connecting to? Also, are you able to reproduce this if connecting to a "demo" instance? |
Also, if you're using an older version of ServiceNow you'll need to enable the REST plugin. |
I guess the latest version of SNOW. Where can I find the version? |
Check out https://developer.servicenow.com -- you'll need to create an account. |
Build name: Kingston |
Yeah - It seems to work on the demo server... what could I be missing on the prod |
Not sure. I'd check the logs. Here's one guide: |
It works when I paste the url in browser, but not via script. anything to do with SSO? |
So its the problem with SSO. Need to handle SSO auth differently. |
👍 Np |
Hi - Just want to check - how can I get the work notes and comments as well? How can I do this in pysnow. checked docs, etc.. not able to find any way to do this.. |
Check out #112 |
your awesome :) |
Hello Marirs, Did you figure out how to solve the SSO connectivity issue with service now? There was no response posted here if it was resolved so just wanted to know. I am running into a similar issue and haven't been able to find a response anywhere to resolve this. |
I'm getting the same error 401 Client Error: Unauthorized for url. Works fine if I use requests module instead of pysnow |
I have tried using pysnow and servicenow but I run into same issue with both. Haven't been able to figure out a way to get past the 401 error for SSO login. It work's perfectly fine for non SSO connections. Not sure if anyone has found a way around it yet. |
I think you must use OAuth token generated using your servicenow portal directly (if you have enought right to do it) if you are using an SSO. ans using the |
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://cablevision.service-now.com/api/now/table/incident?sysparm_query=number%3DINC0683731&sysparm_limit=10000&sysparm_offset=0&sysparm_display_value=False&sysparm_suppress_pagination_header=False&sysparm_exclude_reference_link=False&sysparm_view=&sysparm_fields=
The text was updated successfully, but these errors were encountered: