Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

cannot deploy API gateway #208

Open
jogi343 opened this issue Jun 29, 2023 · 0 comments
Open

cannot deploy API gateway #208

jogi343 opened this issue Jun 29, 2023 · 0 comments

Comments

@jogi343
Copy link

jogi343 commented Jun 29, 2023

Hello,

I am trying to run this simple Openwhisk ndoejs http-endpoint example from this repository.
When I run the command serverless delpoy, I am getting the following error denoting the failure of the deployment of the API gateway.

Warning: You're relying on provider "openwhisk" defined by a plugin which doesn't provide a validation schema for its config.
Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
You may turn off this message with "configValidationMode: off" setting

Compiling Functions...
Compiling Packages...
Compiling API Gateway definitions...
Compiling Rules...
Compiling Triggers & Feeds...
Compiling Service Bindings...
Deploying Functions...
Deploying API Gateway definitions...
Environment: linux, node 16.15.1, framework 3.21.0, plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Failed to deploy API Gateway route due to error: POST http://172.17.0.1:3233/api/v1/web/whisk.system/apimgmt/createApi Returned HTTP 502 (Bad Gateway) --> "API creation failure: Unable to configure the API Gateway (status code 400): {"status":400,"message":"Error: Resource path must begin with '/'."}"

I am running the example locally. I have built local Openwhisk using the command /gradlew :core:standalone:build and I am starting the local Openwhisk using the command java -jar openwhisk-standalone.jar --api-gw as given here.

My Serverless version is the following:

Framework Core: 3.21.0
Plugin: 6.2.2
SDK: 4.3.2

My Openwhisk commit hash is: 88156c3

What could be the reason behind this error? Any help would be greatly appreciated.
Regards.

@medikoo medikoo transferred this issue from serverless/examples Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant