Похожие чаты

Hi all, I’m experiencing a strange issue with the Exact

API. I’m making calls to their endpoints using requests, and I’m frequently getting incomplete responses, even though the status code is always 200. The response body is often truncated, and this happens across different environments (local + VMs + GCP Cloud Run Jobs).

I suspect it’s an issue on Exact’s side, but just wanted to check—has anyone else encountered something like this? Thanks!

8 ответов

11 просмотров

cab you give us a dump of reques and response headers?

Ismael- Автор вопроса
Mat ⋆ Lumin
cab you give us a dump of reques and response head...

no, but its a regular GET request, and status code is 200, content lenght is the expected lenght

Ismael
no, but its a regular GET request, and status code...

This might be dumb, but you could try sending the request through Curl. Check the response and then analyze what's going on with requests lib in python.

Ismael- Автор вопроса
Zeb
This might be dumb, but you could try sending the ...

yes, this is my next step.... I'm going to use postman

Ismael
yes, this is my next step.... I'm going to use pos...

Ah gotchu. https://blog.petrzemek.net/2018/04/22/on-incomplete-http-reads-and-the-requests-library-in-python/ Do check if content-length is present Check this as well: https://stackoverflow.com/questions/49064398/requests-exceptions-chunkedencodingerror-connection-broken-incompleteread0

Ismael- Автор вопроса
Zeb
Ah gotchu. https://blog.petrzemek.net/2018/04/22/o...

content length is, and is the expected lenght

Ismael- Автор вопроса
Zeb
Ah gotchu. https://blog.petrzemek.net/2018/04/22/o...

stackoverflow issue is with py2, too old

Ismael
stackoverflow issue is with py2, too old

Just check if you're sending requests without closing. Ig using the requests inside 'with' should be helpful

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта