-
Notifications
You must be signed in to change notification settings - Fork 26
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
Race Condition w/ Multiple QR Code Tabs Open #1
Comments
@yogeshpathade thanks for reaching out. The token should have something after the |
@d11wtq I can confirm I am passing through the actual token.
|
Have you only generated one token? Currently generating a token will revoke any existing tokens. |
@d11wtq Thanks. I have generated a new token and used the latest generated token in the request. I can confirm that the old tokens are not used as explained on the docs that they will be revoked once new token is issued. Are the requests monitored for the whitelisted IP Addresses? Does the request need to pass any additional headers etc? |
Is it possible you have some additional white space before the token? Not seeing anything obvious on our end. |
could you try wrap the --header part with "" instead of '' ? |
@d11wtq No more an issue. I can get the response now. Not sure what was wrong. Whats the token timeout? {
"meta": {
"id": "9bec95e8-0ca8-42f2-9e10-585c2c84c0f1",
"statusEmoji": "⚡️"
}
} |
Closing this issue. I could access all of my accounts and transactions. Thanks for your help @d11wtq |
Fantastic!
While we're in beta and access tokens are for personal use only, there isn't one. This will change when we start supporting third parties accessing your data. |
Thanks, @d11wtq For your prompt response. I found the problem with the Unauthorized 401 responses happening yesterday. It's probably a bug.
to fetch the tokens which in the race condition one of them revokes the previously granted token. Assuming the Open tab page which is used to scan the QR Code has the latest token to copy makes the API request failed with 401 since the tokens are already overridden and revoked by some other pages in the background. |
Ohhhh, good find. That definitely sounds like a bug. @plasticine fyi. |
We've just deployed a fix for this. Essentially now you can only have the QR code page open in one window at a time. Opening a new window invalidates the others. |
Looks good. Thanks @d11wtq |
Hi,
I have generated the Access Token by following the steps https://api.up.com.au/getting_started here.
curl --location --request GET 'https://api.up.com.au/api/v1/util/ping'
--header 'Authorization: Bearer up:yeah:'
Getting HTTP 401 with Response
I am not sure if the token is incorrect or invalid or something else is wrong. I tried multiple times with other APIs as well.
The text was updated successfully, but these errors were encountered: