apache/openwhisk-runtime-go

proxy doesn't handle unicode conformance for OpenWhisk.

csantanapr opened this issue · 5 comments

the proxy should be able to handle input JSON and output if it wants the same exact JSON output.

Currently it returns nil for unicode input

wsk action invoke golangfunc -p winter "❄ ☃ ❄" -r

The expected output should be:

{
"winter": "❄ ☃ ❄"
}

But the output is not is nil

{
"winter": nil
}

cc @sciabarra

I am going to try to debug this.

Just tried with my (updated) command line test suite (see PR #43) and works for me:

$ docker pull openwhisk/actionloop-golang-v1.10:master
Digest: sha256:f6dbc20ec87ac8c82ca1600ea6b55756dfe5e9e4d809f3872890310c3216e5ac
$ cd test
$ ./start.sh openwhisk/actionloop-golang-v1.10:master
2a3b778c9372fa1cde998c7d096ba0e543931557edb62cf0db0bb97401026a4b
$  bin/init.sh etc/hello.go 
{"ok":true}
$ bin/run.sh '{"name": "❄ ☃ ❄"}'
{"hello":"Hello, ❄ ☃ ❄!"}
200

Can you point me to the test failing?

New version should work, please confirm and close