Skip to content
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

Connection closed error #11

Open
romainframe opened this issue Jan 7, 2021 · 0 comments
Open

Connection closed error #11

romainframe opened this issue Jan 7, 2021 · 0 comments

Comments

@romainframe
Copy link

Hi there,

Thanks for your great job. I tried to test the boilerplate from the last master version, everything seems working except when requests pace increases.

Example:

  • I create a user with curl -X POST "http://localhost:3004/user" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"id\": \"string\", \"name\": \"string\", \"updated_at\": \"2021-01-06T15:48:09.407Z\", \"created_at\": \"2021-01-06T15:48:09.407Z\"}"
  • I request http://localhost:3004/user endpoint and get correct result [{"created_at":"2021-01-07T09:04:09.652Z","id":"c2a2909e-a0c9-42c0-a008-15c5f219eaa9","name":"string","updated_at":"2021-01-07T09:04:09.652Z"}]
  • I repeat this GET request few times (like 5 times) and get randomly a connection closed error with following error catched: {\"id\":\"go.micro.client\",\"code\":500,\"detail\":\"connection closed\",\"status\":\"Internal Server Error\"}

Do you have an idea of what it could be?

It seems that NATS lose the connection with REST SVC but I don't know if it is the cause or a consequence of the REST SVC failure.

Versions:

  • Mac OS X 10.15.7
  • Docker version 20.10.0, build 7287ab3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant