bluzi / jsonstore

:rocket: jsonstore offers a free and secured JSON-based cloud datastore for small projects | Inactive
https://www.jsonstore.io/
MIT License
2.03k stars 74 forks source link

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

Open sookoll opened 5 years ago

sookoll commented 5 years ago

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.

bluzi commented 5 years ago

Hi,

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

Thanks for reporting

pedromassango commented 5 years ago

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

bluzi commented 5 years ago

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.

sookoll commented 5 years ago

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.

bluzi commented 5 years ago

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.

Orasund commented 5 years ago

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