Unable to fetch a newly created user
karianmash opened this issue · 0 comments
karianmash commented
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