outofcoffee / imposter

Scriptable, multipurpose mock server. Run standalone mock servers, or embed mocks within your tests.
https://imposter.sh
Other
363 stars 59 forks source link

Getting 500 with 'Response already ended or closed' #629

Open daniel-klingensmith-jamf opened 1 week ago

daniel-klingensmith-jamf commented 1 week ago

Full log attached, but after a few requests I'm getting a 500 with IllegalStateException: Response already ended or closed

obfuscated_output.log


| 2024-09-20 20:58:13 WARN i.g.i.s.ResponseServiceImpl - Response file and data are blank for [abac17dd-dde8-4d45-8292-f3eadc7e8ec6] GET http://<url>.lambda-url.us-east-1.on.aws/customer/v2/tenants/12345678-aaaa-bbbb-cccc-0000000000000/state
| 2024-09-20 20:58:13 DEBUG i.g.i.s.ResponseServiceImpl - Returning empty response for [abac17dd-dde8-4d45-8292-f3eadc7e8ec6] GET http://<url>.lambda-url.us-east-1.on.aws/customer/v2/tenants/12345678-aaaa-bbbb-cccc-0000000000000/state
| 2024-09-20 20:58:13 WARN  i.g.i.s.HandlerServiceImpl - File not found: GET http://<url>.lambda-url.us-east-1.on.aws/customer/v2/tenants/12345678-aaaa-bbbb-cccc-0000000000000/state
| 2024-09-20 20:58:13 ERROR i.g.i.a.AbstractHandler - java.lang.IllegalStateException: Response already ended or closed
| 2024-09-20 20:58:13 INFO  i.g.i.a.AbstractHandler - Sending response: [statusCode=500,body=<null>]

Running in AWS with .zip on 4.0.3

Config files mock-machine.zip

daniel-klingensmith-jamf commented 1 week ago

I will try to wittle this down to a script that does the minimum required to cause the issue.