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

Allow csrf to be updated on cookie refresh and add 401 error handling #148

Merged
merged 1 commit into from
Feb 20, 2022
Merged

Allow csrf to be updated on cookie refresh and add 401 error handling #148

merged 1 commit into from
Feb 20, 2022

Conversation

TactfulElf
Copy link

@TactfulElf TactfulElf commented Dec 23, 2021

if (!this.csrf && ar && ar.length >= 2) {
prevents the csrf being updated after a re-init with former registration data has returned a new csrf, this will result in 401 errors on certain commands (such as speech) if the csrf is out of date.

Also this doesnt appear to do anything:
if (!ar || ar.length < 2) ar = this.cookie.match(/csrf=([^;]+)/);

Also added handling of 401 errors (otherwise the failure is silent)

Should fix:
#57
fixes bbindreiter/node-red-contrib-alexa-remote2-applestrudel#2
fixes cakebake/node-red-contrib-alexa-remote-cakebaked#31

@Apollon77
Copy link
Owner

Apollon77 commented Dec 23, 2021

Good catch :-) Will release ... next days

@Programie
Copy link

I'm also waiting for the fix to fix the issues mentioned in bbindreiter/node-red-contrib-alexa-remote2-applestrudel#2 and cakebake/node-red-contrib-alexa-remote-cakebaked#31.

@Apollon77 do you already know when this PR will be merged and a new version will be released?

@Apollon77
Copy link
Owner

oohh yes there was something open ... ... ... will check

@Programie
Copy link

Anything new about the merge of this PR? Isn't it just a click of a button?

@Apollon77 Apollon77 merged commit 20b71fa into Apollon77:master Feb 20, 2022
@Apollon77
Copy link
Owner

Release comes soon

@Apollon77
Copy link
Owner

released as 4.1.2

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.

stopped working and need restart No speech output
3 participants