Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

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

Open
sookoll opened this issue Dec 11, 2018 · 6 comments
Open

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

sookoll opened this issue Dec 11, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@sookoll
Copy link

sookoll commented Dec 11, 2018

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
Copy link
Owner

bluzi commented Dec 11, 2018

Hi,

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

Thanks for reporting

@bluzi bluzi added the bug Something isn't working label Dec 11, 2018
@pedromassango
Copy link

pedromassango commented Dec 12, 2018

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

@bluzi
Copy link
Owner

bluzi commented Dec 12, 2018

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 bluzi closed this as completed Dec 16, 2018
@sookoll
Copy link
Author

sookoll commented Dec 16, 2018

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 bluzi reopened this Dec 17, 2018
@bluzi
Copy link
Owner

bluzi commented Dec 17, 2018

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
Copy link

Orasund commented Mar 3, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants