-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Not set Header.Connection if forever option is falsy #1259
base: master
Are you sure you want to change the base?
Conversation
Hi @sacru2red, what node, axios and soap versions do you use? I tried your code locally and could not replicate the issue. |
@w666 |
same error: node 20.17, 19.9 |
@sacru2red, I still can replicate the problem, it may be env related. I slightly modified your code to catch and print the error.
I always get the following error
If I understand it right server returns some encode/decode error. Is this expected error? Could you provide a bit more details about your environment? |
you are right. In the example I gave, the 500 error you received (“[Err-002] An error occurred while setting the encoding and decoding KEY.”) is the expected response. In the current situation, you can just leave it at 200 OK. I am in windows |
Sorry, I was not clear enough. I understand that server is broken, I just can't replicate the problem. Just tried on Windows, same result as on Linux regardless of whether I set Would it be possible to provide full console output, like from my terminal below? |
Oops, I made a mistake too.
/** |
Okay, finally replicated the issue, but don't understand why I will need to investigate that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a test for this?
Or if I have time, I can have a look too.
@sacru2red could you please check if this PR fixes the problem? |
I thought about writing a test file before submitting this PR, but it was difficult to write. I understand how this repo works (no issue capter), but it seems a bit difficult to contribute. CONTRIBUTING.md << It is not detailed and is old, so it is not helpful. Anyway, thank you for writing the test file and I will check it out. |
Ah, yeah, project is very old, and I joined just recently, but I improved some areas already. I will have a look on docs when I have time. |
@w666 I will write the test code and code again and then tag it. memo: fix logic createClient, modify HttpClient.constructor. |
@sacru2red, I think it should work. No need to revert changes, I will squash all commits and update commit message when merge. I attached small project I used for replicating the problem. Then update file and run I think that is what you expect, right? |
Not set Header.Connection if forever option is falsy
axios hang up
I tried simple codes
I found connection 'close' can be problematic
current:
pr: