1

I'm using MMLib.SwaggerForOcelot for gateway. in .Net core

enter image description here

I got this error. Any idea?

My Upstream and DownStream:

"SwaggerEndPoints": [
    {
      "Key": "skIndustry",
      "Config": [
        {
          "Name": "Industry API",
          "Version": "v1",
          "Url": "http://industryapi:80/swagger/v1/swagger.json"

        }
      ]
    }
]

My ReRoutes:

"ReRoutes": [
    {
      "DownstreamPathTemplate": "/{everything}",
      "DownstreamScheme": "http",
      "DownstreamHostAndPorts": [
        {
          "Host": "industryapi/",
          "Port": 80
        }
      ],
      "UpstreamPathTemplate": "/Industry/{everything}",
      "UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
      "SwaggerKey": "skIndustry"
    }
]

Thanks, Croos.

Croos Nilukshan
  • 154
  • 1
  • 14
  • Please post the contents of your OpenAPI definition file (YAML / JSON). There should be a link to under the API title at the top ([example](https://stackoverflow.com/a/48525934/113116)). If the OpenAPI file is generated from source code, please also post your code. – Helen May 28 '19 at 09:21
  • 1
    Hi (I'm autor of MMLib.SwaggerForOcelot), which version are you use? Please can you provide your ocelot configuration and downstream service original swagger.json? Thanks. – Mino Jun 02 '19 at 07:24
  • Hi @Mino, Im using MMLib.SwaggerForOcelot 1.2.0. And Json files are Updated in my question. – Croos Nilukshan Jun 06 '19 at 04:41
  • @Mino Can you please validate this issue https://stackoverflow.com/questions/59772540/request-url-error-in-swagger-for-ocelot-like-http-http – Croos Nilukshan Jan 16 '20 at 15:18

1 Answers1

1

Please try new version 1.3.1.

This PR probably solve similar problem.

Mino
  • 305
  • 2
  • 12