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

Error: Invalid language: es-419 #2856

Closed
5 tasks done
JorgeAlberto91MS opened this issue Feb 3, 2021 · 2 comments
Closed
5 tasks done

Error: Invalid language: es-419 #2856

JorgeAlberto91MS opened this issue Feb 3, 2021 · 2 comments

Comments

@JorgeAlberto91MS
Copy link

JorgeAlberto91MS commented Feb 3, 2021

What are the steps to reproduce?

Set browser language to Spanish (Latin America).

What happens?

When loading Node-Red Editor, the Runtime shows "Error: Invalid language: es-419".
The page freeze "Loading Node Catalog".

The bug is not present if Language in browser is set to English.

Here the complete console error:

Error: Invalid language: es-419
at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/api/nodes.js:410:24
at new Promise ()
at Object.getModuleCatalogs (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/api/nodes.js:405:16)
at getModuleCatalogs (/usr/lib/node_modules/node-red/node_modules/@node-red/editor-api/lib/admin/nodes.js:177:26)
at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:137:13)
at /usr/lib/node_modules/node-red/node_modules/@node-red/editor-api/lib/auth/index.js:69:28
at complete (/usr/lib/node_modules/node-red/node_modules/passport/lib/middleware/authenticate.js:268:13)
at /usr/lib/node_modules/node-red/node_modules/passport/lib/middleware/authenticate.js:275:15
at pass (/usr/lib/node_modules/node-red/node_modules/passport/lib/authenticator.js:431:14)

What do you expect to happen?

Load Node-Red Editor page.

Please tell us about your environment:

  • Node-RED version: 1.2.8
  • Node.js version: 12.20.1
  • npm version: 6.14.10
  • Platform/OS: MacOS
  • Browser: Chrome / Safari / Chromium
@knolleary
Copy link
Member

Thanks for reporting. I failed to consider language codes with numbers in when adding some validation to 1.2.8.

Will have 1.2.9 published later today with a fix.

@knolleary
Copy link
Member

1.2.9 has now been published. Sorry for the interruption.

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

No branches or pull requests

2 participants