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
Getting 404 because client {clientId} has closed web socket connection
What you are trying to do
I am trying to setup a mockserver that would test some of payment flows. Our software will send a payment request to the mockserver, and based on the paymentId and payment amount mockserver should either return status=AUTHORIZED or status=DENIED.
Using 'mockserver-client-java' with java code to setup the expectations.
Steps:
In test, I set expectation to stay live for 30 minutes, send payment.and verified that the response is correct.
Checked in the mockserver dashboard that the expectation is active.
Now since the expectation is live, I send another payment with valid params and I expect to get a 200 again. But I am getting a 404. The dashboard now shows a warning client {clientId} not found for request {...}client registry only contains
and
07-22 19:08:07.357 NO_MATCH_RESPONSE no expectation for:
{...}
returning response:
{...}
07-22 19:08:07.357 EXPECTATION_NOT_MATCHED request:
{...}
didn't match expectation:
{...}
because:
...
07-22 19:08:07.357 RECEIVED_REQUEST received request:
{...}
07-22 19:07:59.734 EXPECTATION_RESPONSE
07-22 19:07:59.734 EXPECTATION_RESPONSE returning response:
{...}
for request:
{...}
for action:
{...}
from expectation: "4f552174-8e92-42aa-b536-4878484eebf5"
07-22 19:07:59.734 WARN returning
{...}
because client {clientId} has closed web socket connection
07-22 19:07:59.733 EXPECTATION_MATCHED request:
{...}
matched expectation:
{...}
07-22 19:07:59.733 RECEIVED_REQUEST received request:
{...}
I am not sure if this is a bug or if I missed some steps MockServer version
5.15.0
To Reproduce
Steps to reproduce the issue:
Setup an expectation that would be live for 30 mins.
In a different test, send a request that matches the request in the expectation. Verify that it returns 404.
How you are running MockServer (i.e maven plugin, docker, etc) -> on a container in EKS
If I uncomment first line, it works fine. But after running the test once, the expectation is LIVE for 30 minutes, so I shouldn't have to run it again, right?
8. What error you saw
Expected behaviour
As long as the expectation is LIVE, I expected to get a 200.
MockServer Log
Log output, as INFO level (or lower)
returning
{...}
because client 61fb84d8-7ae7-4aa3-99d5-0ed500f47c6f has closed web socket connection
The text was updated successfully, but these errors were encountered:
anu-jose
changed the title
Getting 404 and dashboard shows client 61fb84d8-7ae7-4aa3-99d5-0ed500f47c6f has closed web socket connection
Getting 404 and dashboard shows client {clientId} has closed web socket connection
Jul 22, 2024
Describe the issue
Getting 404 because client {clientId} has closed web socket connection
What you are trying to do
I am trying to setup a mockserver that would test some of payment flows. Our software will send a payment request to the mockserver, and based on the paymentId and payment amount mockserver should either return status=AUTHORIZED or status=DENIED.
Using 'mockserver-client-java' with java code to setup the expectations.
Steps:
client {clientId} not found for request {...}client registry only contains
and
I am not sure if this is a bug or if I missed some steps
MockServer version
5.15.0
To Reproduce
Steps to reproduce the issue:
Setup an expectation that would be live for 30 mins.
In a different test, send a request that matches the request in the expectation. Verify that it returns 404.
How you are running MockServer (i.e maven plugin, docker, etc) -> on a container in EKS
Code you used to create expectations
If I uncomment first line, it works fine. But after running the test once, the expectation is LIVE for 30 minutes, so I shouldn't have to run it again, right?
8. What error you saw
Expected behaviour
As long as the expectation is LIVE, I expected to get a 200.
MockServer Log
Log output, as INFO level (or lower)
The text was updated successfully, but these errors were encountered: