Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

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

@alvarobasi

Description

@alvarobasi

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:

  • Toolkit version: Ubuntu 18.04 AMI (AWS EC2 Instance).
  • Framework version: Docker version 20.10.5, build 55c4c8
  • Python version:3.6
  • CPU or GPU:GPU
  • Custom Docker image (Y/N):N

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions