Невозможно получить доступ к порту контейнера докеров на почтальонеC#

Место общения программистов C#
Ответить Пред. темаСлед. тема
Гость
 Невозможно получить доступ к порту контейнера докеров на почтальоне

Сообщение Гость »


Please, I am getting an "Error: Socker Hang Up" error on postman whenever i try to make a request through the port of the docker container.
It's a C#/Asp.net web api project and the api returns the proper json response whenever i make a request using the application's local host on swagger and even on postman.
However, when i try to make a request using the port of the docker container, i get "Error: Socket Hang up".
This is the error on the console

Код: Выделить всё

Error: socket hang up

Network

Request Headers

User-Agent: PostmanRuntime/7.36.3

Accept: */*

Cache-Control: no-cache

Postman-Token: 5bbf635d-8dee-4fd4-b9e8-8b089d39e6c8

Host: localhost:8000

Accept-Encoding: gzip, deflate, br'

Connection: keep-alive
How can i resolve this???
I have tried to check my Firewall settings, went through the docker file i wrote to see there was an error...I still haven't been able to fix the problem


Источник: https://stackoverflow.com/questions/781 ... on-postman
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»