Skip to content

Connection closed error #11

@romainframe

Description

@romainframe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions