-
Notifications
You must be signed in to change notification settings - Fork 23
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
pyas2 built-in web server fails with chunked encoding transfer #34
Comments
Well the issue is that in the first request the request body is empty. This is strange and I have not seen this before, I will need to do some research and get back to you. |
I thought an empty message had been sent in the failed case, yet the
content-length header value is the same as the non-failed case.
|
The content-length is just a header value and in this case the request body seems to be empty as indicated in the logs. |
You could try to run the AS2 server on Apache instead of |
I am using tcpflow to troubleshoot this continuing problem. I have captured one failed transmission and I see that it's using chunked encoding whereas non-failed transmissions specify content-length. I am using caddy as front-end server that then proxies to pyas2. I have setup another tcpflow session to capture proxy traffic to determine if caddy is messing up chunked transfer or not. everything is running under docker, I'd rather not load pyas2 in apache. Is there a known issue with chunked encoding using the built-in pyas2 http server? |
@bkcsfi Hey i'm getting the same error too. Did you figure out what was going on and any workaround for this ? |
hello, sorry for the delay replying. I am using Caddy as a front-end server, that then http proxies to pyas2. I have been pursuing this issue with the caddy project because tcpflow tests had shown that the issue was possibly caused by caddy and not pyas2. today I was able to capture raw packets for analysis by wireshark and now I see that in fact there's nothing wrong with the request that caddy is proxying on to pyas2. so now I'm back. I think there may be an issue with pyas2 default web server.. our workaround was to ask the trading partner to disable chunked encoding in MS Biztalk.. not ideal but we're up and running. |
When receiving messages from MS Biztalk, we occasionally see this error during decryption:
the debug output doesn't show any particular AS2 protocol header that's too long, so maybe its' some other header. What is strange is that the debug log does not show the raw contents that were received.
e.g. failed log shows this:
When we ask them to retransmit the same message again, it works and the message is decoded ok
In both cases the content-length is the same, 5376
How do we figure out what header is too long?
Why does the raw message contents not appear in the debug log in the failed case?
The text was updated successfully, but these errors were encountered: