typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
71.87k stars 6.93k forks source link

Compressed Uploads #1555

Open mickeyl opened 1 month ago

mickeyl commented 1 month ago

Are they supposed to work?

When sending one, I get

SyntaxError: Unexpected token 'x', "x����T�LQ�"... is not valid JSON
    at JSON.parse (<anonymous>)
    at file:///opt/homebrew/lib/node_modules/json-server/node_modules/milliparsec/dist/index.js:21:45
    at file:///opt/homebrew/lib/node_modules/json-server/node_modules/milliparsec/dist/index.js:8:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///opt/homebrew/lib/node_modules/json-server/node_modules/milliparsec/dist/index.js:21:20
    at async file:///opt/homebrew/lib/node_modules/json-server/node_modules/@tinyhttp/app/dist/index.js:169:7
    at async file:///opt/homebrew/lib/node_modules/json-server/node_modules/@tinyhttp/app/dist/index.js:434:7