You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
If an environment variable or another default parameter is not properly set then sls deploy will throw an error. The error that displays is only: Returned HTTP 400 (Bad Request) --> "The request content was malformed:
However under the covers if you add additional logging you will find.
message:
'PUT https://us-south.functions.cloud.ibm.com/api/v1/namespaces/OURNAMESPACE/actions/add-users?overwrite=true Returned HTTP 400 (Bad Request) --> "The request content was malformed:\nparameters malformed!"',
error:
{ code: '5e5ddc3f2084d2c18cbdbfc66e8665cc',
error: 'The request content was malformed:\nparameters malformed!' },
statusCode: 400 }
I feel like there should be a preflight check fo parameters or at the very least a more verbose error message when this happens as it's not 100% apparent what is causing the error without going into the code and adding a log node_modules/serverless-openwhisk/deployFunction/index.js:70
The text was updated successfully, but these errors were encountered:
Hello Michael - can you expand on what you mean by environment variable or another default parameter not being set? Do you mean the authentication parameters like (__OW_API_HOST) or something else?
Can you provide a test-case for this and it can get added to the backlog? Adding more verbose error messages or pre-flight checks seems like a good idea. If you want to have a go at a PR - I'd happily review and work on getting it merged.
If an environment variable or another default parameter is not properly set then
sls deploy
will throw an error. The error that displays is only:Returned HTTP 400 (Bad Request) --> "The request content was malformed:
However under the covers if you add additional logging you will find.
I feel like there should be a preflight check fo parameters or at the very least a more verbose error message when this happens as it's not 100% apparent what is causing the error without going into the code and adding a log
node_modules/serverless-openwhisk/deployFunction/index.js:70
The text was updated successfully, but these errors were encountered: