You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need the json to return "accepted_answer" as one of the fields, which requires me to send access_token when I call the StackExchange API. I'm getting this error:
stackexchange.core.StackExchangeError: 406 [access_token_compromised]: Access token sent over non-HTTPS request, it has been invalidated
Retrieving the accepted_answer field on its own shouldn't require an access token — indeed, the field is part of the default filter. A separate issue in the library led to it not being included on the question object, but I've fixed that in commit 715b77f. Bear in mind that the field isn't included on questions which don't have an accepted answer yet.
I've also switched the library to use HTTPS by default (commit 2222c2b), so any other calls that require an access token should now work. You may need to regenerate the one you were using in the above example, however.
Either way, if you update to the latest master, everything should work.
Thanks, and please let me know if that works for you now :)
I need the json to return "accepted_answer" as one of the fields, which requires me to send access_token when I call the StackExchange API. I'm getting this error:
This is how I'm trying to do it:
How can I fix this?
The text was updated successfully, but these errors were encountered: