aws / sagemaker-tensorflow-serving-container

A TensorFlow Serving solution for use in SageMaker. This repo is now deprecated.
Apache License 2.0
174 stars 101 forks source link

curl: (56) Recv failure: Connection reset by peer error when trying to do a curl request to http://localhost:8080/invocations #208

Open alvarobasi opened 3 years ago

alvarobasi commented 3 years ago

Describe the bug I am getting a Connection reset by peer error when sending a curl request to the built container.

To reproduce

  1. ./scripts/build.sh --version 2.0.0 --arch gpu
  2. ./scripts/start.sh --version 2.0.0 --arch gpu
  3. curl -X POST --data-binary @test/resources/inputs/test.json \ -H 'Content-Type: application/json' \ -H 'X-Amzn-SageMaker-Custom-Attributes: tfs-model-name=half_plus_three' \ http://localhost:8080/invocations

These steps can be found in the « Building your image » section from here

Expected behavior The server should give a JSON response corresponding to the input data.

Screenshots or logs If applicable, add screenshots or logs to help explain your problem.

System information A description of your system. Please provide:

Additional context Add any other context about the problem here.

cryptexis commented 1 year ago

@alvarobasi have you found the solution ?