【问题标题】:Serverless-offline: route not found statusCode": 404无服务器离线:找不到路由 statusCode”:404
【发布时间】:2021-07-14 23:28:46
【问题描述】:

无服务器离线没有获得路由。 我在用 “无服务器离线”:“^3.25.4”, “无服务器”:“^1.0.0”版本

    "statusCode": 404,
    "error": "Serverless-offline: route not found.",
    "currentRoute": "post - /dev/v1/authn",
    "existingRoutes": [
        "post - /v1/authn"
]
}

【问题讨论】:

    标签: node.js serverless-framework


    【解决方案1】:

    错误消息表明您请求了POST /dev/v1/authn,但是您的应用程序中的唯一路由是POST /v1/authn

    从您的请求中删除/dev/,它应该可以工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-04
      • 1970-01-01
      • 1970-01-01
      • 2013-12-16
      • 2020-12-09
      • 2014-05-28
      • 2020-03-26
      • 1970-01-01
      相关资源
      最近更新 更多