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 2021/01/05 15:20:42 UTC

[GitHub] [openwhisk-client-go] ShubhamGupta9582 opened a new issue #141: wrong statusCode in case of application error in activation output

ShubhamGupta9582 opened a new issue #141:
URL: https://github.com/apache/openwhisk-client-go/issues/141


   Hi guys,
   
   I am getting statusCode 0 in case of application error. It should be 1 in case of application error. I am returning 400 statusCode in my action's output but it is showing statusCode 0 in response map and in the root json also it is showing statusCode 0.
   you can see the output of **wsk -i activation get activationId** command in below screenshot.
   ![Screenshot from 2021-01-05 13-18-14](https://user-images.githubusercontent.com/30547263/103620346-52840700-4f59-11eb-95cf-46048faa429d.png)
   


----------------------------------------------------------------
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



[GitHub] [openwhisk-client-go] ShubhamGupta9582 commented on issue #141: wrong statusCode in case of application error in activation output

Posted by GitBox <gi...@apache.org>.
ShubhamGupta9582 commented on issue #141:
URL: https://github.com/apache/openwhisk-client-go/issues/141#issuecomment-754715444


   No, I am not changing CLI.
   Sure, I'll connect with you on community Slack.


----------------------------------------------------------------
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



[GitHub] [openwhisk-client-go] rabbah commented on issue #141: wrong statusCode in case of application error in activation output

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #141:
URL: https://github.com/apache/openwhisk-client-go/issues/141#issuecomment-754705562


   I'm curious, @ShubhamGupta9582 are you trying to modify the CLI to report the web action status code? What you ran into is clearly a bug that should be fixed in this Go client for OpenWhisk. Depending on what you might be doing, there may be easier solutions - feel free to reach out to me on the community Slack if you want to chat about it.


----------------------------------------------------------------
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



[GitHub] [openwhisk-client-go] ShubhamGupta9582 removed a comment on issue #141: wrong statusCode in case of application error in activation output

Posted by GitBox <gi...@apache.org>.
ShubhamGupta9582 removed a comment on issue #141:
URL: https://github.com/apache/openwhisk-client-go/issues/141#issuecomment-754699409


   Still the statusCode in the root json is 0. I am checking this statusCode also from where it is getting value.
   
   ![Screenshot from 2021-01-05 20-44-36](https://user-images.githubusercontent.com/30547263/103663247-e58f6200-4f96-11eb-950b-f5b8533cbe99.png)
   


----------------------------------------------------------------
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