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

use ocelot in docker can't route to raw service #934

Closed
fuxuejun opened this issue Jun 19, 2019 · 3 comments
Closed

use ocelot in docker can't route to raw service #934

fuxuejun opened this issue Jun 19, 2019 · 3 comments

Comments

@fuxuejun
Copy link

fuxuejun commented Jun 19, 2019

Expected Behavior / New Feature

change Ocelot.Provider.Consul.Consul Line 60:

// new ServiceHostAndPort(serviceNode == null ? serviceEntry.Service.Address : serviceNode.Name, serviceEntry.Service.Port),

new ServiceHostAndPort(serviceEntry.Service.Address, serviceEntry.Service.Port),

Ocelot.DownstreamUrlCreator.Middleware.DownstreamUrlCreatorMiddleware:Debug: requestId: 0HLNKD0PKJCRA:00000002, previousRequestId: no previous request id, message: Downstream url is http://192.168.1.50:5002/common/v1/swagger.json

Actual Behavior / Motivation for New Feature

Ocelot.DownstreamUrlCreator.Middleware.DownstreamUrlCreatorMiddleware:Debug: requestId: 0HLNKD0PKJCRA:00000002, previousRequestId: no previous request id, message: Downstream url is http://devserver:5002/common/v1/swagger.json

No Such Device or Address Error.

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:
  • Subsystem:
@panda-big
Copy link

I also have this problem. But, why is it designed like this?

@Leandropintogit
Copy link

#909

@raman-m
Copy link
Member

raman-m commented Jan 27, 2024

Fixed by #909

Current code:

new ServiceHostAndPort(
serviceNode == null ? service.Address : serviceNode.Name,
service.Port),

@raman-m raman-m closed this as completed Jan 27, 2024
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

4 participants