Questions and Answers

Getting a 422 error while making a post request

const res = await fetch( "https://gorest.co.in/public/v2/posts", { headers: { "Authorization": Bearer ${API_TOKEN}, 'Accept': 'application/json', "Content-Type": 'application/json' } } Respose data says "user" must exist. It worked 2-3 times before

my token is not working

i am unable to use my token ,it is not working

CORS Error

Hi team, Not able to do a POST request to the below endpoint/API. Kindly advise may be there is a missing CORS setting. https://gorest.co.in/public-api/users Access to fetch at 'https://gorest.co.in/public-api/users' from origin 'https://mydomain.dummyinternet.com' has been blocked by CORS policy: Response to preflight request doesn't pass acces...

422 Unprocessable Entity for POST Call

While sending below Post REQUEST to create new user in the end point : https://gorest.co.in/public/v2/users , [ { "email": "[email protected]", "name": "Ric Jais", "gender": "female", "status": "active" } ] It gives below- [ { "field": "email", "message": "can't be blank" }, { "field"...

422 Unprocessable entity

While sending Post REQUEST in the following end point : https://gorest.co.in/public/v2/users , Input is provided via CSV File. Facing 422 Unprocessable entity . Iteration is displayed as 1. Same error , when we try to create more than one user in a same json request body.

CORS

i have problem with " Access to fetch at 'https://gorest.co.in/public-api/posts?page=9' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS dis...

CORS Errors for the v2 endpoints

Hi! I can get the posts/comments/users without the authentication token, but if I try to use it I get a CORS error: Access to XMLHttpRequest at 'https://gorest.co.in/public/v2/comments' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Co...

Access Token

where i can found Access Token

WSDL file

I need a WSDL file or path for Gorest.co.in

X-Pagination-Limit Problem

hello, I changed the header by adding "x-pagination-limit" with a value of 20, but the result still shows only 10 lists. is the pagination header not working?