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

Wrong URL when using the non-default package #192

Open
epiresdasilva opened this issue May 2, 2020 · 0 comments
Open

Wrong URL when using the non-default package #192

epiresdasilva opened this issue May 2, 2020 · 0 comments

Comments

@epiresdasilva
Copy link

A wrong URL is built when using the non-default package for my functions using the serverless-openwhisk plugin.

Here is the wrong URL: https://us-south.functions.cloud.ibm.com/api/v1/web/[email protected]_dev/mypackage/mypackage/categoriaIncluir.json
The URL must be like this: https://us-south.functions.cloud.ibm.com/api/v1/web/[email protected]_dev/mypackage/categoriaIncluir.json

The package mypackage is duplicated in the URL.

Below is my serverless.yaml:

service: example-backend

provider:
  name: openwhisk
  runtime: python:3.6

functions:
  categoriaIncluir:
    handler: categoria/incluir_categoria.main
    name: mypackage/categoriaIncluir
    events:
    - http: POST /categoria
    annotations:
      web-export: true
      require-whisk-auth: false
    parameters:
      categoria-db: demo-categoria

resources:
  apigw:
    basepath: /example-demo
  packages:
    mypackage:
      name: mypackage
      parameters:
        cloudantPass: "some value"
        cloudantUser: "some value"
        cloudantUrl: "some value"
plugins:
  - serverless-openwhisk

Here is an example of an API with a wrong URL.

{"operationId":"post-/categoria","responses":{"200":{"description":"A successful invocation response"}},"x-openwhisk":{"action":"categoriaIncluir","namespace":"[email protected]_dev/mypackage","package":"mypackage","url":"https://us-south.functions.cloud.ibm.com/api/v1/web/[email protected]_dev/mypackage/mypackage/categoriaIncluir.json"}}
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