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

422 Unprocessable entity #52

Open
denizdogan opened this issue Jan 14, 2021 · 16 comments
Open

422 Unprocessable entity #52

denizdogan opened this issue Jan 14, 2021 · 16 comments

Comments

@denizdogan
Copy link

For some reason this started today. I'm using the exact sample as in the documentation:

curl -X POST https://jsonbin.org/denizdogan/blog \
     -H 'authorization: token <redacted>' \
     -d '{ url: "https://remysharp.com" }'

Any ideas?

@psotos
Copy link

psotos commented Jan 17, 2021

It's happening for me as well. I am adding in the content-type of application/json. With or without that it fails.

curl --location --request POST 'https://jsonbin.org/psotos/blog'
--header 'Content-Type: application/json'
--header 'authorization: token '
--header 'Cookie: id=
--data-raw '{
"org": "my org"
}'

@rektdeckard
Copy link

Getting the same! On inspection, the data is being written just fine -- but not returning 200.

@pke
Copy link

pke commented Jun 15, 2021

@remy this seems to still happen. Nothing It is saved, the request data is valid but the server response is 422.

Any ideas or can we get more debugging information?

@jyydev
Copy link

jyydev commented Jun 25, 2021

Same here. The data is successfully saved in json, just giving 422 status code in console.log after the POST request.

@Varun-Patkar
Copy link

Got the same error. Data gets added but response is 422

@iamcco
Copy link

iamcco commented Sep 22, 2021

Same here

@mboveiri
Copy link

mboveiri commented Feb 1, 2022

same here

@pke
Copy link

pke commented May 5, 2022

@remy what do you think, could you address the issue? It's currently impossible to store arrays on the server.

@remy
Copy link
Owner

remy commented Oct 23, 2023

I'm soooper late replying (literally years later), but I couldn't replicate this using the first example.

Is there data already at the endpoint and you're trying to push or is it that you're trying to start an array?

@Pipth
Copy link

Pipth commented Oct 24, 2023

On my case I a trying to patch data on the endpoint (to change the contents) but I can't.

@remy
Copy link
Owner

remy commented Oct 24, 2023

@Pipth do you have a curl example (with your token removed) that I can use to replicate?

@innowesley
Copy link

@remy

curl -X PATCH "https://jsonbin.org/me/data/metadata"
-H "Content-Type: application/json"
-H "[OTHER HEADERS]"
-d '{"version": "1.0"}'

@ythong
Copy link

ythong commented Oct 25, 2023

same here

@ythong
Copy link

ythong commented Oct 25, 2023

POST is error, and Get is OK.

@ythong
Copy link

ythong commented Oct 25, 2023

When I first registered (around September 2022), it was good. Later, due to the large content, the author helped me clear it a few days ago. Now I have discovered this problem.

@remy
Copy link
Owner

remy commented Oct 27, 2023

@ythong can you share the specific code (with the API token removed) that you're seeing the error with? Similar to what @innowesley has done.

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