json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Internal Server Error

Open mig82 opened this issue 5 years ago • 3 comments

Hi,

I just tried creating one of these fake API's but I'm facing an Internal Server Error I can't figure out. Could you tell me what's wrong with it? https://my-json-server.typicode.com/mig82/iron-bank-of-braavos

I've linted the JSON and it's correct.

mig82 avatar Apr 02 '20 17:04 mig82

Ok. I found out why. I had an attribute in db.json here which was a timestamp.

"timestamp": "2020-04-02T17:26:13.265Z"

This was causing an error.

mig82 avatar Apr 02 '20 17:04 mig82

I had the same issue cause I was using as url "https://my-json-server.typicode.com/salvolannister/myjsonserver/db.json" instead of "https://my-json-server.typicode.com/salvolannister/myjsonserver/db"

salvolannister avatar Nov 20 '20 11:11 salvolannister

I am facing the same issue my db.json:

https://my-json-server.typicode.com/Ali-Guliyev/Ali-Guliyev-Portfolio

aligu7 avatar Sep 06 '22 10:09 aligu7