GithubHelp home page GithubHelp logo

Comments (12)

Burgyn avatar Burgyn commented on May 26, 2024 2

Hi,
thanks for your reports and aditional informations.
It helped me reproduce this problem.

I'll fix it in next release v2.0. After finished issue #56.

As a workaround you can downgrade to version 1.8

Thank you and apologize.

from mmlib.swaggerforocelot.

kajbonfils avatar kajbonfils commented on May 26, 2024 1

u

I just downgraded to v. 1.8.0, and the problem is removed.

  "ReRoutes": [            
    {
      "UpstreamPathTemplate": "/services/Crm/{everything}",
      "UpstreamHttpMethod": [ "Get", "Post" ],
      "DownstreamPathTemplate": "/api/v1/Crm/{everything}",
      "DownstreamScheme": "http",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 54199
        }
      ],
      "SwaggerKey": "CRMApi"
    }
  ],
  "SwaggerEndpoints": [    
    {
      "Key": "CRMApi",
      "Config": [
        {
          "Name": "CRM Api",
          "Version": "v1",
          "Url": "http://localhost:54199/swagger/v1/swagger.json"
        }
      ]
    }
  ],
	"GlobalConfiguration": {
		"BaseUrl":  "http://localhost:5051"
	}
}

from mmlib.swaggerforocelot.

kajbonfils avatar kajbonfils commented on May 26, 2024

I have the same issue, running version 1.9.0. Could this be related to #51 ?

from mmlib.swaggerforocelot.

slvsnnk avatar slvsnnk commented on May 26, 2024

Perfect thank you. With version 1.8 it works for me too.

from mmlib.swaggerforocelot.

Burgyn avatar Burgyn commented on May 26, 2024

Hi @xsilviox

Please can you provide ocelot.json configuration and swagger.json of downstream service?

Thanks.

from mmlib.swaggerforocelot.

mourier avatar mourier commented on May 26, 2024

Having same issue - normal posting works fine tho.
So guess this is only an issue in the swagger part.

from mmlib.swaggerforocelot.

Burgyn avatar Burgyn commented on May 26, 2024

Hi @mourier

Please can you provide ocelot.json configuration and swagger.json of downstream service?

Thanks.

from mmlib.swaggerforocelot.

mourier avatar mourier commented on May 26, 2024

ocelot.json
swagger.json

@Burgyn
swagger,json for just one of the downstreams - but every one is affected.

from mmlib.swaggerforocelot.

Burgyn avatar Burgyn commented on May 26, 2024

Fixed in version 1.10.2

from mmlib.swaggerforocelot.

ThiyagarajanVellaichamy avatar ThiyagarajanVellaichamy commented on May 26, 2024

Hi Could you please help me out?

Using v1.10.2
.Net Core 3.1
Request URL Error: localhost://5003/auth-service/v1/Authentication
Expected: http://localhost:5003/auth-service/v1/authentication

Screenshot 2020-05-03 at 11 22 21

from mmlib.swaggerforocelot.

Burgyn avatar Burgyn commented on May 26, 2024

Hi @ThiyagarajanVellaichamy,
Please, Can you create new issue for it an provide ocelot.json.

Thanks.

from mmlib.swaggerforocelot.

ThiyagarajanVellaichamy avatar ThiyagarajanVellaichamy commented on May 26, 2024

Hi @ThiyagarajanVellaichamy,
Please, Can you create new issue for it an provide ocelot.json.

Thanks.

{
"ReRoutes": [
{
"DownstreamPathTemplate": "/api/{everything}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5001
}
],
"UpstreamPathTemplate": "/auth-service/{everything}",
"UpstreamHttpMethod": [ "Get", "Post" ],
"SwaggerKey": "authswagger",
"VirtualDirectory": "/authswagger"
}
],
"SwaggerEndPoints": [
{
"Key": "gateway",
"TransformByOcelotConfig": false,
"Config": [
{
"Name": "Gateway",
"Version": "v1",
"Url": "https://localhost:5003/swagger/v1/swagger.json"
}
]
},
{
"Key": "authswagger",
"Config": [
{
"Name": "Authentication API",
"Version": "v1",
"Url": "https://localhost:5001/api/swagger/v1/swagger.json"
}
]
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost"
}
}

from mmlib.swaggerforocelot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.