You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible for AMT to return status code 400 with no body (Content-Length: 0). In this case, parseBody() attempts to access message.body.text and throws an exception.
To Reproduce 🪜
It may well occur randomly due to an underlying problem with splitting writes of a request using chunked encoding to CIRA channels. This pull request discusses one such case
Expected behavior
A suitable error should be returned, either '' or null. It could be as simple as:
if (message.bodySize === 0) {
return ''
}
Alternatively, it shouldn't even be called if bodySize is zero.
AMT Device (please complete the following information): 🖥️
OS: Windows
AMT Version: 15.0.41
AMT Configuration Mode: CCM
Network Configuration: Dynamic IP
Service Deployment (please complete the following information): ⛈️
Deployment Type: Docker
Node Version: 16
Component & Version: mps latest
Additional context
Debug trace showing message object passed to parseBody():
Describe the bug 🪲
It's possible for AMT to return status code 400 with no body (Content-Length: 0). In this case, parseBody() attempts to access
message.body.text
and throws an exception.To Reproduce 🪜
It may well occur randomly due to an underlying problem with splitting writes of a request using chunked encoding to CIRA channels. This pull request discusses one such case
Expected behavior
A suitable error should be returned, either '' or null. It could be as simple as:
Alternatively, it shouldn't even be called if bodySize is zero.
AMT Device (please complete the following information): 🖥️
Service Deployment (please complete the following information): ⛈️
Additional context
Debug trace showing message object passed to parseBody():
The text was updated successfully, but these errors were encountered: