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

Errors suppressed #62

Open
gibsonje opened this issue May 26, 2021 · 0 comments
Open

Errors suppressed #62

gibsonje opened this issue May 26, 2021 · 0 comments

Comments

@gibsonje
Copy link

Unexpected errors publishing a provider get suppressed.

Here:
https://github.com/outsideris/citizen/blob/master/lib/provider/provider.js#L61

I added

verbose(response.body)

To try to figure out why I'm getting:

RequestError
Unexpected token < in JSON at position 0

It turns out my problem was actually:

  citizen:client <html>
  citizen:client <head><title>413 Request Entity Too Large</title></head>
  citizen:client <body bgcolor="white">
  citizen:client <center><h1>413 Request Entity Too Large</h1></center>
  citizen:client <hr><center>nginx/1.13.5</center>
  citizen:client </body>
  citizen:client </html>
  citizen:client  +0ms

My nginx config isn't allowing large uploads.

I think verbose logging the error return could help with debugging.

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

1 participant