POST to IPFS "add" returning HTTP 502 today (and 500 via curl)

I’ve been using uport-connect for about 6 months, and it calls when doing a login. I used this tool just yesterday successfully. However, now in my browser it’s hanging for 10 minutes before I finally get an HTTP 502 with a response body of:

<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>

Here’s a curl command for it, which gives me an HTTP 500:

curl -v '' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://localhost:3001/' -H 'Content-Type: multipart/form-data; boundary=---------------------------742589033813838141826559250' -H 'Origin: http://localhost:3001' -H 'Connection: keep-alive' --data '-----------------------------742589033813838141826559250\
Content-Disposition: form-data; name="file"; filename="blob"\
Content-Type: application/octet-stream\

It’s now working for me.

Thanks for the update @trentlarson. Let us know if you encounter any issues again.


I have the same problem, with ipfs-mini using addJSON(). Weird thing is that it seems to work for certain JSON data and not for others. Any clue?

Seems to be working consistently fine again.

Last week Aug 17 things were working with uPort on Android with my app (at Then Aug 24 we tried my app and it wasn’t working for multiple people; curiously, a desktop interaction would work. I couldn’t find a good way to investigate the calls on Android, but at one point I did see an HTTP error with (Unfortunately, I didn’t see if it was a “add” call, but I believe that’s the only Infura call made.)

Everything seems to be working now.

I’m making this comment just to record the incident.