You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/10/23 08:30:58 UTC

[GitHub] [openwhisk] Mehervani11 commented on issue #4067: [Issue] 100% reproducible ok: invoked /guest/example, but the request has not yet finished, with id xxxx

Mehervani11 commented on issue #4067: [Issue] 100% reproducible ok: invoked /guest/example, but the request has not yet finished, with id xxxx
URL: https://github.com/apache/openwhisk/issues/4067#issuecomment-545332082
 
 
   > 
   > 
   > Hello Neeraj,
   > 
   > Thank you for the quick response. Indeed, it was during creation.
   > Yet, still no luck. I am starting to wonder how hard is it to run Spring Cloud Function on OpenWhisk.
   > 
   > ~$ wsk -i -v action create examplethree -t 100000 --docker patrickpok/hello
   > REQUEST:
   > [PUT] https://xxx/api/v1/namespaces/guest/actions/examplethree?overwrite=false
   > Req Headers
   > {
   > "Authorization": [
   > "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
   > ],
   > "Content-Type": [
   > "application/json"
   > ],
   > "User-Agent": [
   > "CloudFunctions-CLI/1.0 (2018-07-12T22:20:03+00:00) darwin amd64"
   > ]
   > }
   > Req Body
   > {"namespace":"guest","name":"examplethree","exec":{"kind":"blackbox","image":"patrickpok/hello"},"limits":{"timeout":100000}}
   > 
   > RESPONSE:Got response with code 200
   > Resp Headers
   > {
   > "Access-Control-Allow-Headers": [
   > "_" ], "Access-Control-Allow-Methods": [ "GET, DELETE, POST, PUT, HEAD" ], "Access-Control-Allow-Origin": [ "_"
   > ],
   > "Connection": [
   > "keep-alive"
   > ],
   > "Content-Length": [
   > "263"
   > ],
   > "Content-Type": [
   > "application/json"
   > ],
   > "Date": [
   > "Tue, 16 Oct 2018 14:33:11 GMT"
   > ],
   > "Server": [
   > "openresty/1.13.6.2"
   > ],
   > "X-Request-Id": [
   > "d6lpGBwMg7Ot6IwYZFjV6ZzNoTjkQaZ2"
   > ]
   > }
   > Response body size is 263 bytes
   > Response body received:
   > {"name":"examplethree","publish":false,"annotations":[{"key":"exec","value":"blackbox"}],"version":"0.0.1","exec":{"kind":"blackbox","image":"patrickpok/hello","binary":false},"parameters":[],"limits":{"timeout":100000,"memory":256,"logs":10},"namespace":"guest"}
   > ok: created action examplethree
   > 22:33>~$ wsk -i -d -v action invoke examplethree --result --param payload foo
   > [commands.NewQualifiedName]:132:[Inf] Qualified pkg+entity (EntityName): examplethree
   > [commands.NewQualifiedName]:133:[Inf] Qualified namespace: guest
   > [commands.NewQualifiedName]:134:[Inf] Qualified package:
   > [commands.NewQualifiedName]:135:[Inf] Qualified entity: examplethree
   > [li/commands.getParameters]:071:[Inf] Parsing parameters: []string{"{"payload": "foo"}"}
   > [mmands.getJSONFromStrings]:099:[Inf] Convert content to JSON: []string{"{"payload": "foo"}"}
   > [mmands.getJSONFromStrings]:109:[Inf] Created map 'map[payload:foo]' from '{"payload": "foo"}'
   > [k.(*ActionService).Invoke]:294:[Inf] HTTP route: actions/examplethree?blocking=true&result=true
   > [k.(*Client).addAuthHeader]:298:[Inf] Adding basic auth header; using authkey
   > REQUEST:
   > [POST] https://xxx/api/v1/namespaces/guest/actions/examplethree?blocking=true&result=true
   > Req Headers
   > {
   > "Authorization": [
   > "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
   > ],
   > "Content-Type": [
   > "application/json"
   > ],
   > "User-Agent": [
   > "CloudFunctions-CLI/1.0 (2018-07-12T22:20:03+00:00) darwin amd64"
   > ]
   > }
   > Req Body
   > {"payload":"foo"}
   > 
   > [go/whisk.PrintRequestInfo]:458:[Inf] Req Body (ASCII quoted string):
   > "{"payload":"foo"}\n"
   > RESPONSE:Got response with code 202
   > Resp Headers
   > {
   > "Access-Control-Allow-Headers": [
   > "_" ], "Access-Control-Allow-Methods": [ "GET, DELETE, POST, PUT, HEAD" ], "Access-Control-Allow-Origin": [ "_"
   > ],
   > "Connection": [
   > "keep-alive"
   > ],
   > "Content-Length": [
   > "51"
   > ],
   > "Content-Type": [
   > "application/json"
   > ],
   > "Date": [
   > "Tue, 16 Oct 2018 14:34:21 GMT"
   > ],
   > "Server": [
   > "openresty/1.13.6.2"
   > ],
   > "X-Openwhisk-Activation-Id": [
   > "fa307c689dd74d89b07c689dd7ad89af"
   > ],
   > "X-Request-Id": [
   > "VbMM8s7CkeqXOD9BRxwtCM9pILWQOvVy"
   > ]
   > }
   > Response body size is 51 bytes
   > Response body received:
   > {"activationId":"fa307c689dd74d89b07c689dd7ad89af"}
   > [o/whisk.PrintResponseInfo]:499:[Inf] Response body received (ASCII quoted string):
   > "{"activationId":"fa307c689dd74d89b07c689dd7ad89af"}"
   > [hisk.parseSuccessResponse]:583:[Inf] Parsing HTTP response into struct type: *map[string]interface {}
   > [hisk.parseSuccessResponse]:592:[Inf] Successful parse of HTTP response into struct type: *map[string]interface {}
   > [k.(*ActionService).Invoke]:309:[Err] s.client.Do() error - HTTP req https://17.88.168.108/api/v1/namespaces/guest/actions/examplethree?blocking=true&result=true; error 'Request accepted, but processing not completed yet.'
   > ok: invoked /guest/examplethree, but the request has not yet finished, with id fa307c689dd74d89b07c689dd7ad89af
   > [main.main ]:068:[Inf] err object type: *whisk.WskError
   > [main.main ]:072:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc4203c5360), ExitCode:202, DisplayMsg:false, MsgDisplayed:false, DisplayUsage:false, DisplayPrefix:false, ApplicationError:false, TimedOut:true}
   > 
   > ~$ wsk -i activation get fa307c689dd74d89b07c689dd7ad89af
   > error: Unable to get activation 'fa307c689dd74d89b07c689dd7ad89af': The requested resource does not exist. (code TjAmuYEtsr5rgvyrxaFIhp892Rg7lqEP)  
   
   Is the issue resolve with help of IBM Cloud Team ? Even am facing the similar issue . Unable to get the hello world message on invoking the ibm cloud action with timelimit 2000 as well. Pls help ASAP

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services