apache / openwhisk-client-js

JavaScript client library for the Apache OpenWhisk platform
https://openwhisk.apache.org/
Apache License 2.0
83 stars 53 forks source link

service requests modify query string with every retry #230

Closed purplecabbage closed 2 years ago

purplecabbage commented 2 years ago

This was also reported here: https://github.com/adobe/aio-cli-plugin-app/issues/504 The issue is that client.js:rp ( request promise wrapper) builds a query string and modifies the object reference url, so on every retry it gets longer..

/api/v1/namespaces/ns/actions/pkg/action?overwrite=true /api/v1/namespaces/ns/actions/pkg/action?overwrite=true?overwrite=true /api/v1/namespaces/ns/actions/pkg/action?overwrite=true?overwrite=true?overwrite=true

OpenWhiskError: PUT host/api/v1/namespaces/ns/actions/pkg/action?overwrite=true?overwrite=true?overwrite=true Returned HTTP 400 (Bad Request) --> "The query parameter 'overwrite' was malformed:
'true?overwrite=true?overwrite=true' is not a valid Boolean value"