You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/09 15:44:35 UTC

[GitHub] hsane2001 opened a new issue #2563: WSK CLI network error behind proxy

hsane2001 opened a new issue #2563: WSK CLI network error behind proxy
URL: https://github.com/apache/incubator-openwhisk/issues/2563
 
 
   <!--
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include the
   information shown below.
   
   If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   
   ## Environment details:
   
   * native Ubuntu  
   * Docker version 1.12.0, build 8eab29e, Ubuntu 16.04
   
   ## Steps to reproduce the issue:
   
   1.   After openwhisk is installed perform: wsk action list which works fine
   2.   Now add proxy to environment to gain external access
   3.   wsk action list results in timeout and network error
   4.  curl to couchdb address also does not respond after adding proxy, remove it and works fine.
   
   
   ## Provide the expected results and outputs:
   
   ```
   wsk action list
   hello private
   ```
   
   
   ## Provide the actual results and outputs:
   
   ```
   Behind proxy:
    wsk action list -v -d
   [isk/whisk.addRouteOptions]:035:[Inf] Adding options &{Limit:30 Skip:0 Docs:false} to route 'actions'
   [isk/whisk.addRouteOptions]:060:[Inf] Returning route options 'actions?limit=30&skip=0' from input struct &{Limit:30 Skip:0 Docs:false}
   [isk.(*ActionService).List]:135:[Err] Action list route with options: actions
   [k.(*Client).NewRequestUrl]:517:[Inf] basepath: http://10.23.233.114:10001/api, version/namespace path: v1/namespaces/_, resource path: actions?limit=30&skip=0
   [k.(*Client).addAuthHeader]:203:[Inf] Adding basic auth header; using authkey
   REQUEST:
   [GET]   http://10.23.233.114:10001/api/v1/namespaces/_/actions?limit=30&skip=0
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ]
   }
   RESPONSE:Got response with code 503
   Resp Headers
   {
     "Cache-Control": [
       "no-cache"
     ],
     "Connection": [
       "Keep-Alive"
     ],
     "Content-Length": [
       "787"
     ],
     "Content-Type": [
       "text/html; charset=utf-8"
     ],
     "Pragma": [
       "no-cache"
     ],
     "Proxy-Connection": [
       "Keep-Alive"
     ]
   }
   Response body size is 787 bytes
   Response body received:
   <HTML><HEAD>
   <TITLE>Network Error</TITLE>
   </HEAD>
   <BODY>
   <FONT face="Helvetica">
   <big><strong></strong></big><BR>
   </FONT>
   <blockquote>
   <TABLE border=0 cellPadding=1 width="80%">
   <TR><TD>
   <FONT face="Helvetica">
   <big>Network Error (tcp_error)</big>
   <BR>
   <BR>
   </FONT>
   </TD></TR>
   <TR><TD>
   <FONT face="Helvetica">
   A communication error occurred: "Operation timed out"
   </FONT>
   </TD></TR>
   <TR><TD>
   <FONT face="Helvetica">
   The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
   </FONT>
   </TD></TR>
   <TR><TD>
   <FONT face="Helvetica" SIZE=2>
   <BR>
   For assistance, contact your network support team.
   </FONT>
   </TD></TR>
   </TABLE>
   </blockquote>
   </FONT>
   </BODY></HTML>
   
   [-whisk/whisk.(*Client).Do]:262:[Inf] Response body received (ASCII quoted string):
   "<HTML><HEAD>\r\n<TITLE>Network Error</TITLE>\r\n</HEAD>\r\n<BODY>\r\n<FONT face=\"Helvetica\">\r\n<big><strong></strong></big><BR>\r\n</FONT>\r\n<blockquote>\r\n<TABLE border=0 cellPadding=1 width=\"80%\">\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\n<big>Network Error (tcp_error)</big>\r\n<BR>\r\n<BR>\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\nA communication error occurred: \"Operation timed out\"\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\nThe Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\" SIZE=2>\r\n<BR>\r\nFor assistance, contact your network support team.\r\n</FONT>\r\n</TD></TR>\r\n</TABLE>\r\n</blockquote>\r\n</FONT>\r\n</BODY></HTML>\r\n"
   [/whisk.parseErrorResponse]:334:[Inf] HTTP failure 503 + body
   [/whisk.parseErrorResponse]:352:[Err] HTTP response with unexpected body failed due to contents parsing error: 'invalid character '<' looking for beginning of value'
   [isk.(*ActionService).List]:149:[Err] s.client.Do() error - HTTP req http://10.23.233.114:10001/api/v1/namespaces/_/actions?limit=30&skip=0; error 'The connection failed, or timed out. (HTTP status code 503)'
   [/commands.actionListError]:708:[Err] client.Actions.List(, &whisk.ActionListOptions{Limit:30, Skip:0, Docs:false}) error: The connection failed, or timed out. (HTTP status code 503)
   [main.main                ]:068:[Inf] err object type: *whisk.WskError
   [main.main                ]:072:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc420269c70), ExitCode:247, DisplayMsg:true, MsgDisplayed:false, DisplayUsage:true, DisplayPrefix:true, ApplicationError:false, TimedOut:false}
   error: Unable to obtain the list of actions for namespace 'default': The connection failed, or timed out. (HTTP status code 503)
   
   ```
   
   ## Additional information you deem important:
   * issue happens only occasionally or under certain circumstances   
   * changes you did or observed in the environment
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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