openwhisk-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodric Rabbah <>
Subject Re: Try out the api gateway support in standalone server (#4571)
Date Mon, 29 Jul 2019 14:51:25 GMT
Hi Chetan,

this is fantastic... I followed your instructions here as is even though I
noticed the gw PR was merged already and in theory I should be able to drop
the image override.

the system came up cleanly, and as relayed on Slack, I think it would be
useful to hoist the messages that gw is ready up to where the system checks
are first printed so they aren't lost in all the output that follows which
for the most part, users should be able to ignore.

i tried creating an API as documented in [2] but hit a snag. The controller
received this request from the gateway:

[#tid_bEVIJzQ...] GET //localhost:3233/api/v1/web/guest/default/hello.json

but this doesn't match any routes in the controller and the API returns
with a 404. The prefix "//localhost:3233/" needs to be omitted, I'm not yet
sure where it's coming from. I suspect you'll know right away.

These are the logs from the gw for the failed request:

==> /var/log/api-gateway/access.log <== - remote_user="-" [29/Jul/2019:14:50:45 +0000]
request_protocol="HTTP/1.1" status=404 bbs=96 rl=130 rt=0.008 hr="-"
ua="curl/7.54.0" xfwdf="-" upadd="" upstat=404 uprt=0.007
tenantNamespace="23bc46b1-71f6-4ed5-8c54-816aa4f8c502" tenantInstance=""
requestHeaders="" requestBody="" responseHeaders="" responseBody=""
apiId="8a68d0a9-a024-4411-9233-7ba1d9099b1a" apiKey="-"
analyticsUri="/hello/world" reqid="zvL6RbV0qtiZ0BakfDGudINV8Gzv1Ocl"

==> /var/log/api-gateway/gateway_error.log <==
2019/07/29 14:50:45 [info] 35#0: *21 client closed keepalive
2019/07/29 14:50:48 Executing sync cmd: echo ''
sync stdout | ''
2019/07/29 14:50:48 done


On Mon, Jul 29, 2019 at 7:53 AM Chetan Mehrotra <>

> Hi Team,
> As discussed in last Tech Interchange call support is now being added
> to launch the Api Gateway with Standalone Server [1]. With this it
> should be possible to direct new OpenWhisk users to use the Standalone
> server to try out various features provided by OpenWhisk
> So far tests look fine and would now like to seek some feedback from
> community on this feature. For this it would be helpful if you can try
> out a beta build and see if it works as expected
> # Fetch custom docker build of apigateway which has
> apache/incubator-openwhisk-apigateway#347 fixed
> $ docker pull chetanmeh/apigateway
> # Download the openwhisk-standalone jar
> $ wget
> $ java -Dwhisk.standalone.api-gateway.image=chetanmeh/apigateway -jar
> openwhisk-standalone.jar --api-gw
> Post this you can use the steps as mentioned in [2] to check out the
> gateway support.
> Please share any feedback on #4571 or this mail thread
> Chetan Mehrotra
> [1]
> [2]

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message