Skip to content
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

Intermittent 401 Unauthorized #19

Closed
joedawson opened this issue Oct 28, 2018 · 1 comment
Closed

Intermittent 401 Unauthorized #19

joedawson opened this issue Oct 28, 2018 · 1 comment

Comments

@joedawson
Copy link

Hello,

Any ideas why I may be receiving 401's intermittently? I'm working on my local machine, I have a .txt file that contains my token.

Most of the time, I can fetch data (branches, properties etc). However from time to time, an UnauthorizedException is thrown and I can't seem to use the Vebra API for a little while (haven't worked out if there's a time period I cant' fetch data).

I've read their documentation and can't find any reason why I'm getting this, like rate limiting etc.

Any help would be greatly appreciated!

@joedawson
Copy link
Author

joedawson commented Oct 29, 2018

After speaking with Vebra - if a token has previously been generated and not yet expired and a request is made from another server (in my case, from my local machine) that doesn't have the token, you're going to keep getting this error.

Turns out Vebra doesn't create tokens on a per-requester basis. A token is generated for 1hr on your acocunt. Weird.

Issue is unrelated to this package - which is good news :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant