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
Describe the issue
I am encountering an issue when trying to create an API simulation using MockServer that returns a status code of 0 for my POST request. Instead of a valid HTTP status code, the response is returning '0 U', which is causing an immediate invalid HTTP status error and resulting in timeouts when attempting to handle the response.
What you are trying to do
I am attempting to simulate an API that should return a status code of 0 for a specific POST request. However, MockServer seems to be responding with an improperly formatted status code ('0 U'), leading to parsing errors and connectivity issues.
Expected behaviour
MockServer should return a valid HTTP status code (such as 200) instead of 0 or any invalid representation like '0 U' when a POST request with the specified body is made to /v1/partners/test/transfers/funding.
MockServer Log
Here’s the log message confirming that the expectation was created and the response being returned:
Describe the issue
I am encountering an issue when trying to create an API simulation using MockServer that returns a status code of 0 for my POST request. Instead of a valid HTTP status code, the response is returning '0 U', which is causing an immediate invalid HTTP status error and resulting in timeouts when attempting to handle the response.
What you are trying to do
I am attempting to simulate an API that should return a status code of 0 for a specific POST request. However, MockServer seems to be responding with an improperly formatted status code ('0 U'), leading to parsing errors and connectivity issues.
MockServer version
Deployment Configuration (Masked)
ENTRYPOINT Configuration
To Reproduce
Steps to reproduce the issue:
How you are running MockServer
I am running MockServer in a Docker container deployed on Kubernetes using Helm.
Example command for running locally:
Code used to create expectations
What error you saw
When I send the request using a client (such as Postman or RestSharp), I immediately receive the following error:
Request Details
Request Headers:
Request Body:
Error Message:
Expected behaviour
MockServer should return a valid HTTP status code (such as 200) instead of 0 or any invalid representation like '0 U' when a POST request with the specified body is made to
/v1/partners/test/transfers/funding
.MockServer Log
Here’s the log message confirming that the expectation was created and the response being returned:
The text was updated successfully, but these errors were encountered: