Skip to content

Fix wrong expiration time parsing#120

Merged
jpochyla merged 2 commits intojpochyla:masterfrom
JuliDi:fix-expiration-time
Aug 20, 2021
Merged

Fix wrong expiration time parsing#120
jpochyla merged 2 commits intojpochyla:masterfrom
JuliDi:fix-expiration-time

Conversation

@JuliDi
Copy link
Copy Markdown
Contributor

@JuliDi JuliDi commented Aug 19, 2021

The parsing of the expiration time seems to be wrong (probably outdated?), giving me a failed to parse expiration time from URL ... warning.

Not sure whether these server responses can differ across operating systems or so. At least building from master on macOS 10.15 I get a response of the form .../...a35817ca410?__token__=exp=1629466995~hmac=df348....

With the changes in this PR, the issue seems fixed – the log says that a new token has been requested because it was outdated.

@jpochyla
Copy link
Copy Markdown
Owner

Hi @JuliDi, thanks for the fix! It seems like we're getting different URL formats. I've combined the parsing approaches in the latest commit here. Can you please verify it works on your side?

@JuliDi
Copy link
Copy Markdown
Contributor Author

JuliDi commented Aug 20, 2021

Very odd... but your commit works on my end, as well: [2021-08-20T12:18:06Z INFO psst_core::access_token] access token expired, requesting

Looks ready to merge.

@jpochyla jpochyla merged commit 7c2152d into jpochyla:master Aug 20, 2021
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

Successfully merging this pull request may close these issues.

2 participants