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

[BUG] - Cannot register new user when using a recently added language #3266

Closed
6 tasks done
gndControl opened this issue Mar 7, 2024 · 1 comment
Closed
6 tasks done
Labels
bug Something isn't working triage

Comments

@gndControl
Copy link
Contributor

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

When a recently (after May 6th 2022) added language is used for the UI, confirming the registration returns a status code 422 in the console. Further inspection of the request reveals that the locale is invalid.

Steps to Reproduce

Select a recently added language for the UI. Go through the "register a new user" process and try to complete it.

Please provide relevant logs

{
  "detail": [
    {
      "type": "value_error",
      "loc": [
        "body",
        "locale"
      ],
      "msg": "Value error, invalid locale",
      "input": "sl-SI",
      "ctx": {
        "error": {}
      },
      "url": "https://errors.pydantic.dev/2.6/v/value_error"
    }
  ]
}

Mealie Version

1.3.0 and presumably starting with v1.0.0-beta-1

Deployment

Docker (Windows)

Additional Deployment Details

No response

@hay-kot
Copy link
Collaborator

hay-kot commented Mar 10, 2024

Fix in

with original work in #3267. Thanks for the bug report and the fix! ❤️

@hay-kot hay-kot closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants