Skip to content

fix(lib): fix invalid response after success in Chrome#711

Merged
Xe merged 1 commit into
mainfrom
Xe/accept-lanuage-fix
Jun 23, 2025
Merged

fix(lib): fix invalid response after success in Chrome#711
Xe merged 1 commit into
mainfrom
Xe/accept-lanuage-fix

Conversation

@Xe

@Xe Xe commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

Closes #564

This one is really dumb. Take a seat and listen to my tale of woe.

While @victorvalenca was working on #693 we ran into a strange issue. The tests would consistently pass on Firefox but instantly failed on Chrome. After adding increasingly desperate debugging logs to the mix, we found out that somehow Chrome was randomizing the contents of its Accept-Language header. This was making the challenge string get calculated differently, thus making things spuriously fail. I cannot figure out what causes Chrome to do this other than you being in an environment where you have more than one "system language" set.

Either way, this should finally fix this issue and bring peace to the land forever*.

Checklist:

  • Added a description of the changes to the [Unreleased] section of docs/docs/CHANGELOG.md
  • Added test cases to the relevant parts of the codebase
  • Ran integration tests npm run test:integration (unsupported on Windows, please use WSL)

Closes #564

This one is really dumb. Take a seat and listen to my tale of woe.

While @victorvalenca was working on #693 we ran into a strange issue.
The tests would consistently pass on Firefox but instantly failed on
Chrome. After adding increasingly desperate debugging logs to the mix,
we found out that somehow Chrome was randomizing the contents of its
Accept-Language header. This was making the challenge string get
calculated differently, thus making things spuriously fail. I cannot
figure out what causes Chrome to do this other than you being in an
environment where you have more than one "system language" set.

Either way, this should finally fix this issue and bring peace to the
land forever*.

Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe self-assigned this Jun 23, 2025
@Xe Xe merged commit 16a4e04 into main Jun 23, 2025
7 checks passed
@Xe Xe deleted the Xe/accept-lanuage-fix branch July 2, 2025 11:55
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.

"invalid response." after "Success!" in Chromium

1 participant