Похожие чаты

I'M trying to send a HTTP request with a url

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?

7 ответов

10 просмотров

how?

have you googled the error?

woto-「 噂 」 Автор вопроса
Roman Sharkov
how?

this is how I'm doing it: https://play.golang.org/p/OBCxWyP71u9

woto-「 噂 」 Автор вопроса
Roman Sharkov
have you googled the error?

yes, found nothing useful about it (I found some stackoverflow and github issue, but they didn't tell me anything special)

woto-「 噂 」 Автор вопроса
Roman Sharkov
have you googled the error?

and I found a webpage like this...

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

woto-「 噂 」 Автор вопроса
A​kshit
It means that the TCP connection was closed while ...

yeah, thank you the problem was exactly like this

Похожие вопросы

Обсуждают сегодня

Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
Делал задачу вот такую https://stepik.org/lesson/4985/step/9?unit=1083 получилось такое https://play.haskell.org/saved/ipKrepqe оно работает, тестов много не писал, но работае...
Fedor
22
Whoa, did you guys see this FUNToken Seed Grant announcement? 💸
Noah Noure
37
hello guys, I have a laptop, if you connect wired headphones, the sound will come from the headphones and the built-in speakers AT THE SAME TIME. How can I make the sound com...
El Pepe
21
День GPO прям сегодня. Можно как-то через GPO запретить пользователю сохранять на рабочий стол файлы *.exe? Запретить запускать могу. А вот сохранять... На файловом сервер мог...
Dmitriy
16
Добрый вечер, кто может подсказать как сделать чтобы количество опций было автоматически всегда равно общему количеству товара и вычиталось также из общего кол-ва??
Alex
14
To kaise hai aap log ?
Hakuna Matata
30
Anyone know a solid vendors for XMR?
John Dough
21
What features do you think we should prioritize?
SpaceGemz
12
что-то я не понимаю, в линуксе отладочную информацию как убрать из бинаря? он что с этой опцией, что без - одного и того же (достаточно большого) размера (да, я про лазарь)
Iluha Companets
13
Карта сайта