Errors suppressed
gibsonje opened this issue · 0 comments
gibsonje commented
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.