-
Notifications
You must be signed in to change notification settings - Fork 47
.fetch_one fails with JSONDecodeError("Expecting value", s, err.value) Python 3.5 #32
Comments
shadycuz, Did you fix above error? |
No but I belive my problem was not having the correct service now API roles. |
Or some other credential error. |
I dont see as credential issue, as conn is successful.Might be API roles,not sure. inc = ServiceNow.Incident(conn) <servicenow.ServiceNow.Incident object at 0x000001E401FEA8D0> Only fetch_one issuing JSONDecodeError JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
I am getting the same error. Did anyone get a solution? i |
**I am getting the same error. @wgrcunha Please advise. |
It is not likely due to a connection as I'm getting the same error, and I'm opening it from my hard drive. My file is JSON formatted, so while it fails to load, a similar json file in the same location loads fine. I keep culling the file down to see if something in the file is causing a formatting error that makes it think there is a missing value, but no luck yet. When I recently did a straight json.load with the other file that does load, I got a warning: "InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised." Since my hard drive is shared with a OneDrive, I'm wondering if it's related to Office 365 and OneDrive since it has an external connection maybe a security patch just added to Office 365? |
For me the error was that I'm using a Kingston instance, and Dublin+ instances should use the JSONv2 api as stated in the readme file. |
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
group = grp.fetch_one({'name': 'XXXXXXX'})
print(group)
The text was updated successfully, but these errors were encountered: