jsonstore icon indicating copy to clipboard operation
jsonstore copied to clipboard

#35 comment say, that there is no limit but I ran into one

Open sookoll opened this issue 7 years ago • 6 comments

I tried to POST 20MB json.

Chrome response: Request URL: https://www.jsonstore.io/key/id Request Method: POST Status Code: 413 Payload Too Large

Safari response: [Error] Origin https://localhost:3001 is not allowed by Access-Control-Allow-Origin. [Error] XMLHttpRequest cannot load https://www.jsonstore.io/key/id due to access control checks. [Error] Failed to load resource: Origin https://localhost:3001 is not allowed by Access-Control-Allow-Origin.

sookoll avatar Dec 11 '18 14:12 sookoll

Hi,

It seems to be an issue with bodyparser's default limit.

Thanks for reporting

bluzi avatar Dec 11 '18 15:12 bluzi

How much I can store in my project's database? And where you store the data? is this a secure database?

pedromassango avatar Dec 12 '18 09:12 pedromassango

We do not set a limit, however we won't be able to support large projects. If you're planning on storing few gigs, this is not the kind of datastore you need. Jsonstore is meant to be a quick way to set up a cloud datastore, not a full blown cloud solution like S3 or BigQuery.

bluzi avatar Dec 12 '18 11:12 bluzi

Did You fix this or just close ticket without solution? I still get "413 Payload Too Large" error. Go ahead and set some sane limit then, per request for example. Currently I have no clue, where the limit is and how big json I can send.

sookoll avatar Dec 16 '18 23:12 sookoll

I reopened it as it was closed by mistake. As to setting a limit, that is not how this service works. If you need to store big amount of data you can buy storage from one of the hundreds of paid services out there.

bluzi avatar Dec 17 '18 00:12 bluzi

In the doc of the body-parser you can find that the post-limit is at 100KB!

Orasund avatar Mar 03 '19 21:03 Orasund