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

REST API Playground gives only 412 "Precondition failed" #232

Open
bomas13 opened this issue Nov 7, 2024 · 3 comments
Open

REST API Playground gives only 412 "Precondition failed" #232

bomas13 opened this issue Nov 7, 2024 · 3 comments

Comments

@bomas13
Copy link

bomas13 commented Nov 7, 2024

Using the build-in playground ends for me in any case with a response like:

{
  "error": "Not allowed"
}

and HTTP status code 412 "Precondition failed".

Even for the Lokalize endpoint which is currently usable even w/o any token it's exactly like that.

However, using the generated curl command works just like a charm. Unfortunately, there is no verbose output for debugging - what can I do about this?

@aheinze
Copy link
Collaborator

aheinze commented Nov 7, 2024

Hi!

Did you set a token?

image

Or set a default public user role?

image

@bomas13
Copy link
Author

bomas13 commented Nov 8, 2024

No I did not set a role for unautherized request, because I don't want to allow such requests.
Yes I did set a token for my request. It's automatically set using the button next to a API key. And as I said: the generated curl command works like a charm and it's also containing the token.

@aheinze
Copy link
Collaborator

aheinze commented Nov 16, 2024

Can't verify the issue. Do you get any errors in the network console?

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