API网关:Bluemix

时间:2018-04-26 12:47:32

标签: node.js ibm-cloud cloudfoundry api-management

我在bluemix上的Cloud Foundry应用程序(node.js)中存在嵌入式API管理问题。在yaml中有一条通过网关无法正常工作的路径,请参阅以下yaml的相关路径:

   /socket.io/:
get:
   produces:
    - text/plain; charset=utf-8
    parameters: []
    responses:
      default:
       description: Definition generated from Swagger Inspector

我得到404,没找到。

当我不通过网关时,网址工作正常。

网址为https://[masked api mgd主机名] /socket.io/?EIO=3&transport=polling&t=MC0pE73

请帮忙。

在下面找到完整的yaml

swagger: "2.0"
info:
  description: defaultDescription
  version: "0.1"
  title: defaultTitle
host: masked.actualEndpoint
schemes:
  - https
basePath: "/"
paths:
  /socket.io/:
    get:
      parameters:
      - name: t
        in: query
        required: false
        type: string
        x-example: MC0pE73
      - name: EIO
        in: query
        required: false
        type: string
        x-example: "3"
      - name: transport
        in: query
        required: false
        type: string
        x-example: polling
      responses:
        default:
          description: Definition generated from Swagger Inspector
definitions: {}

使用https://[屏蔽的api mangd主机名访问网址] /socket.io/?EIO=3&transport=polling&t=MCvtHJT

我相信它在路径末尾的/(/socket.io/)导致网关失败。任何评论。

0 个答案:

没有答案