Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload limit on /upload #76

Open
olafveerman opened this issue Jul 9, 2015 · 3 comments
Open

Payload limit on /upload #76

olafveerman opened this issue Jul 9, 2015 · 3 comments

Comments

@olafveerman
Copy link
Collaborator

When uploading a 35mb changeset using:

curl -d @Palawan_Roads.osm http://openroads-api.herokuapp.com/upload

the server returns:

{"statusCode":400,"error":"Bad Request","message":"Payload content length greater than maximum allowed: 1048576"}

cc @dereklieu @kamicut @anandthakker @danielfdsilva

@olafveerman
Copy link
Collaborator Author

It is possible to upload a changeset smaller than 1mb, even though the following message is returned:

$ curl -d @Palawan_Roads3.osm https://openroads-api.herokuapp.com/upload

<!DOCTYPE html>
    <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

@olafveerman
Copy link
Collaborator Author

@danielfdsilva Do I correctly recall that you had some issues setting up Hapi to work with larger file sizes before?

@danielfdsilva
Copy link
Contributor

@olafveerman I don't remember exactly how it was done, but changing the maximum allowed payload is easy. The problem I had was parsing huge files, but just because it would take too long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants