openwhisk-cli icon indicating copy to clipboard operation
openwhisk-cli copied to clipboard

%0D getting added to APIHOST property of wskprops

Open vesankar opened this issue 5 years ago • 3 comments

Environment details:

  • local deployment, native ubuntu, Mac OS, Kubernetes, ...
  • version of docker, ubuntu, ...

Steps to reproduce the issue:

  1. Create .wskprops file with AUTH, APIHOST, NAMESPACE
  2. on running npm run deploy, code deciphers APIHOST into URL
  3. But the URL contains /%0D character added to API host

Because of this, the URL becomes corrupt and so the call fails.

Provide the expected results and outputs:

https://adobeioruntime.net/api/v1/namespaces

Provide the actual results and outputs:

https://adobeioruntime.net/%0D/api/v1/namespaces

Additional information you deem important:

  • issue happens only occasionally or under certain circumstances
  • changes you did or observed in the environment

vesankar avatar Jul 06 '20 17:07 vesankar

How are you updating wskprops?

rabbah avatar Jul 06 '20 19:07 rabbah

Hi Team ,

Am also facing the same issue . When am trying to deploy to Adobe IO getting 400 bad request error

  • Create .wskprops file with AUTH, APIHOST, NAMESPACE
  • on running npm run deploy, code deciphers APIHOST into URL
  • But the URL contains /%0D character added to API host

wsprops file as below AUTH=<AUTH KEY> APIHOST=http://localhost:3233 NAMESPACE=samba

sambasivaraja avatar Jul 23 '21 06:07 sambasivaraja

Thanks for the added detail, %0D is a carriage return. Do you observe this after changing the file? Thanks for the clue.

rabbah avatar Jul 23 '21 09:07 rabbah