in this format (it accepts both GET/POST methods):
https://<my_host_url>/request_something?access_key={my_access_key}&image={<base64> value of image}
And this is the error I'm getting:
write tcp 10.240.27.213:49126->172.67.150.40:443: write: broken pipe
Also I'm sure it's not server-side and most probably it's my client's fault, any clue why this is happening and/or how to fix it?
how?
have you googled the error?
this is how I'm doing it: https://play.golang.org/p/OBCxWyP71u9
yes, found nothing useful about it (I found some stackoverflow and github issue, but they didn't tell me anything special)
It means that the TCP connection was closed while something was reading from the io.Reader exposed by the net.Conn interface (TCP low level stuff). It probably is because you are sending a huge payload (base64 image) via the request url, which is not recommended. The client probably timed out while the server was still reading the url and the client closed the connection
yeah, thank you the problem was exactly like this
Обсуждают сегодня