Questions and Answers
Searchable, indexed, public. Quick way to learn what other developers are running into.
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 bl...
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": "testric1234@yopmail.com", "name": "Ric Jais", "gender": "female", "status": "active" } ] It gives below- [ { "field": "em...
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, s...
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 ...
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?
There is no response body on post request?
I am sending post request successfully and response status 201 but there is no response body. Also it doesn't exist in the API logs.
Getting 403 using axios
Hello i'm getting error 403 forbbiten acces when using axios.get on https://gorest.co.in/public/v2/users this is my code: try{ let users = await axios.get('https://gorest.co.in/public/v2/users?access-token=MY-TOKEN-HERE) console.log(users) } catch(err) { console.log(...