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

maxContentLength size of 10000 exceeded

Open renovatt opened this issue 2 years ago • 6 comments

I am not able to understand why this is happening, my json has only 200 lines, it is working fine with at least 175 lines.

I'm updating a project, and when I add more lines leaving 200 to 420 lines only, it breaks and gives this error.

I'm testing using: https://my-json-server.typicode.com/typicode/demo

Example: https://my-json-server.typicode.com/github-name/repo-name/route

Can anybody help me?

json-server

renovatt avatar Jun 19 '23 16:06 renovatt

Hey, I also have issue with content size. My JSON has also like 2.9KB, way below 10KB, and it doesn't work. Anyone has a fix ?

clementolive avatar Sep 13 '23 07:09 clementolive

Hi @clementolive,

Assuming it's this repo that you're trying to use https://my-json-server.typicode.com/clementolive/JSONServer_Forum, it seems to be working now?

@renovatt sorry for the late reply, but I can have a look if you still need it.

typicode avatar Sep 14 '23 12:09 typicode

Привіт ,

Якщо припустити, що це репо, який ви намагаєтеся використовувати https://my-json-server.typicode.com/clementolive/JSONServer_Forum, здається, він працює зараз?

вибачте за запізнілу відповідь, але я можу подивитися, якщо вона вам все ще потрібна.

Hey, I have the same problem, how to solve it?

NazarLyubchinsky avatar Sep 16 '23 14:09 NazarLyubchinsky

I couldn't solve it, nor understand why this happened, because I had few lines in my file. My solution was to create my own API. @NazarLyubchinsky

renovatt avatar Sep 16 '23 16:09 renovatt

Same here! Driving me crazy. It's only certain file types. html, xml, xconf...

Files open fine with a browser.

JVKeller avatar Jul 17 '24 18:07 JVKeller

Hi @typicode I also have issue with content size, can you help me ? my repo is catalog

mochamadisal avatar Feb 07 '25 20:02 mochamadisal