Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Negotiator prevents googlebot from indexing the page #87

Open
colonder opened this issue Oct 7, 2023 · 1 comment
Open

Negotiator prevents googlebot from indexing the page #87

colonder opened this issue Oct 7, 2023 · 1 comment

Comments

@colonder
Copy link

colonder commented Oct 7, 2023

When in production, I noticed that Googlebot constantly reported a 5xx error when trying to check the page for indexing. I used a URL-checking tool for this. Interestingly, I noticed that the reason for this is that the negotiator library produces an incorrect list of languages, and passes it to the intl-localematcher, which in turn throws an error described here formatjs/formatjs#2440. The temporary fix I introduced was to fix the value of languages to just an empty list. However, negotiator itself hasn't been updated in several years already, so I think it should be replaced with smth else.

@PaulBratslavsky
Copy link
Contributor

@colonder thank you for sharing this and your workaround. I will keep this open until we can figure a better solution.

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

No branches or pull requests

2 participants