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
Every so often, we receive an error when interacting with are Jira instance that says something like: 401 Unauthorized: os_authType was 'any' and an invalid cookie was sent. According to https://developer.atlassian.com/server/framework/atlassian-sdk/rest-and-os-authtype/, if we don't provide a user/pass and the cookie is invalid, the call will fail. For security purposes, our instance doesn't use user/pass, so once the cookie expires, it will fail.
Every so often, we receive an error when interacting with are Jira instance that says something like:
401 Unauthorized: os_authType was 'any' and an invalid cookie was sent.
According to https://developer.atlassian.com/server/framework/atlassian-sdk/rest-and-os-authtype/, if we don't provide a user/pass and the cookie is invalid, the call will fail. For security purposes, our instance doesn't use user/pass, so once the cookie expires, it will fail.We can try something similar to this: https://github.com/pycontribs/jira/blob/09750538a6f10cfe38fd6d1b284bf26f11728b86/jira/client.py#L279. Basically detect 401 errors and retry. There are some examples I've found in our internal Gitlab, contact me if you'd like a link.
The text was updated successfully, but these errors were encountered: