You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2019/03/16 07:23:57 UTC

[slack-digest] [2019-03-15] #general

2019-03-15 02:47:29 UTC - Xue Shuai: @chetanm Thank you so much. I have solved the problem, I use ` echo "metric:222|c" | nc -w 1 -u 127.0.0.1 64025` to test  if statsd received metric. And then check wsk log file. And I realized that every component of wsk is a container,  local ip address `'172.17.0.7` cant reach at all, so I changed `metrics_kamon_statsd_host` and then got all metrics.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552618049292900?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-15 14:02:56 UTC - Rodric Rabbah: I don’t think I followed enough to be able to help. 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552658576293500?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 14:03:12 UTC - Rodric Rabbah: Your webaction is working as expected but not through api gateway?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552658592294100?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 14:04:04 UTC - Rodric Rabbah: That error message is not from the openwhisk control plane as far as I can tell. 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552658644294800?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:47:05 UTC - Perry Dykes: @Rodric Rabbah thanks for your consideration. Net, have a working action that can process incoming xml and respond in json, but has to run the .json http method vs. the uri.  When I use the apigateway to enable without api-key, it seems to bind to the action default url not the .json function I test directly. Net, how to target api gateway to the .json http method is my core mis understanding.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675625295000?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:49:01 UTC - Rodric Rabbah: Is this the ibm gateway? iirc there is an option to use .json. @Mark Deuser? 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675741296000?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:49:35 UTC - Perry Dykes: well, I used the API function in the cloud functions actions panel.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675775296200?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:50:27 UTC - Perry Dykes: seems there is a light weight api gateway in cloud functions and then the standalone service, so, that does confuse me at times.  I used what Cloud Functions offers.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675827296700?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:50:41 UTC - Rodric Rabbah: Someone from ibm should help. Also cc @Carlos Santana.  
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675841297100?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:51:03 UTC - Rodric Rabbah: FWIW you can still respond as json without the extension.  
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675863298000?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:52:02 UTC - Rodric Rabbah: nest the response under { body: yourjson, headers: { set content type accordingly } }
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675922299400?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:52:05 UTC - Perry Dykes: well, since I'm taking raw data in, I was directed to run the .json and that seems to work, when I run the URI directly, Cloud Functions skips something and the uri invocation fails.  @Carlos Santana advised me drive the .json directly.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675925299600?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:52:37 UTC - Perry Dykes: ok, I can try that idea.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552675957299800?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 18:59:01 UTC - Perry Dykes: ok, in net the reason for the .json uri when using an action that has the two settings established:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552676341300000?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 19:01:15 UTC - Perry Dykes: The rest api, even though returning json in the response requires me to run the .json http method endpoint to work, but when connect the cloud functions api gateway, I get tripped up and seems the .json function that Openwhisk magically does is not being included.  I'll reverify the response per suggestion above.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552676475300400?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 19:15:04 UTC - Carlos Santana: when configuring the API in apigateway in UI or `ibmcloud fn api create` use http reponse type then the apigteway will call your webaction.http then inside your action return a json object that has the JSON to be included in the http respoinse after parsing the xml in the request
the result will look like @Rodric Rabbah pointed out
```
resp = {
statusCode: 200,
body: { foo: "bar"}
}
return resp;
```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552677304300700?thread_ts=1552594832.292400&cid=C3TPCAQG1
----
2019-03-15 21:50:49 UTC - Carlos Santana: I’m not a fan of newsletters well I guess email in general. But this is a good newsletter to subscribe <https://serverless.email/issues/92>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552686649302000
----