typicode / jsonplaceholder

A simple online fake REST API server
https://jsonplaceholder.typicode.com
MIT License
5.05k stars 581 forks source link

Unable to fetch a newly created user #196

Closed karianmash closed 1 year ago

karianmash commented 1 year ago

fetch(https://jsonplaceholder.typicode.com/users/11) .then((response) => response.json()) .then((data) => { console.log('User fetched successfully:', data); }) .catch((error) => { console.error('Error:', error); });

When I create a new user, I am unable to retrieve them with their ids. I am only able to retrieve those initial 10 users by their ids