-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Illegal query: Invalid input ' ', expected '+', '=', query-char, 'EOI', '&' or pct-encoded #5043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can reproduce this for nodejs as well. Code for nodejs // test.js async function main(params) { return { } exports.main = main; |
I reproduced this against the playground as well code here.
There is a hidden character |
vs.
The latter uses |
Ok thanks a lot! it seems I only need to add -H 'content-type: application/json' |
Environment details:
Steps to reproduce the issue:
ibmcloud fn action get helloGo --url <- returns your url
curl -X POST -d '{"name":"sfdsfs4 "}' https://us-south.functions.appdomain.cloud/api/v1/xxx/helloGo.json
Provide the expected results and outputs:
Provide the actual results and outputs:
Additional information you deem important:
Code for golang runtime
save as main.go
ibmcloud fn action update helloGo main.go --kind go:1.15 --web true
ibmcloud fn action get helloGo --url # returns your url
curl -X POST -d '{"name":"sfdsfs4 "}' https://us-south.functions.appdomain.cloud/api/v1/xxx/helloGo.json
ibmcloud wsk activation logs --last # returns the logs
Code for native / docker runtime
save as main.go
GOOS=linux GOARCH=amd64 go build -o exec
zip exec.zip exec
ibmcloud wsk action update helloGo --native exec.zip
ibmcloud fn action get helloGo --url <- returns your url
curl -X POST -d '{"name":"sfdsfs4 "}' https://us-south.functions.appdomain.cloud/api/v1//helloGo.json
ibmcloud wsk activation logs --last # returns the logs
The text was updated successfully, but these errors were encountered: