serverless / serverless-openwhisk

Adds Apache OpenWhisk support to the Serverless Framework!
http://openwhisk.org/
MIT License
143 stars 46 forks source link

invalid web action url if api host already includes protocol #174

Closed rabbah closed 5 years ago

rabbah commented 5 years ago

post sls deploy, when printing the public urls to the console, this line https://github.com/serverless/serverless-openwhisk/blob/d4ecee0125f1a7dac95977461d701315dc276bac/info/index.js#L96

will emit as an example the following url for a webaction when the api host already includes an apihost

> wsk property get --apihost -o raw
https://localhost
> sls deploy
...
endpoints (api-gw):
GET http://172.17.0.1:9001/api/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/api/greeting --> my_service-dev-hello

endpoints (web actions):
https://https://localhost/api/v1/web/guest/default/my_service-dev-hello