-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: failed to do request #66
Comments
@emretulek could you please share more information about the actual content of the used variables? otherwise your provided code to reproduce the issue does not even run ...
and did you try it with the latest 1.5.0 release? |
I'm using a residental proxy, I have two requests linked together. Both requests exit from the same ip among themselves. random one of the following versions
random chrome useragent may not be version compatible with tlsClientidentifier. usually a fixed accept language and string cookies I will try the latest version as soon as possible. |
@emretulek when i use your provided code and just grab some residential proxies everything works fine for me. Any other hints how to reproduce your issue? i mean somehow you are able to do it |
I spawn child processes with promiseAll by a main task, each of which makes 10 * 2 = 20 requests in groups of 2. The number of children can sometimes reach 100. I also get some errors when I use node-fetch instead of tls-client, of course I don't get that many errors. It's around 1/10. In addition, the requests I make with node-fetch are somehow timeout, tls-client can freeze without responding, which causes the number of children in the background to swell. The proxy I'm using is pretty slow and problematic, I'm aware of that, but when I use it with node-fetch, the flow doesn't break. Here are some errors I get with fetch: |
I would like to state that I did all the final tests with version 1.5.0. |
Hello, have you solved your problem? I also have the same problem, which is strange. It has been running normally for 3 months, but it only started to appear today |
|
anyone found a fix for this that works with proxies with auth? I am having the same issue but only happens when using a lot of concurrent requests. I am using an ipv6 proxy |
Anynone found a fix that works with proxies please ? |
No but I know what is causing the problem. TLS client does not close all connections when they are done with, so with proxies that have a thread limitter it will easily fill up the amount you have. The simple fix is to close the connect after every request but I am unsure how to do so. Also I found out it only happens with proxies with username:password auth. (only ipv6 from what I have tested) |
TLS client version
v1.3.11
System information
Windows Server 2019 64 bit
Intel(R) Xenon(R) E-2136 CPU @ 3.30GHz
Nodejs v16.17
failed to do request: Post "https://xxxxxxxx.xxx/": unexpected EOF
I get the following error very often when using proxy. this issue sometimes causes the code to freeze without error.
After doing some research, I came across the following topic. is there a parameter that i can apply for tls client? And does it solve the problem?
https://stackoverflow.com/a/19006050
Issue description
I get this error very often when using proxy.
failed to do request: Get "https://www.example.com/": EOF
Steps to reproduce / Code Sample
The text was updated successfully, but these errors were encountered: