steffenrost commented on issue #4403: Add detailed error and reason information 
to status code
URL: 
https://github.com/apache/incubator-openwhisk/pull/4403#issuecomment-477332357
 
 
   > @steffenrost can you clarify what the connection to #4388 is?
   > 
   > Is it that the cloudant response is failing and you don't know why - and 
this change is to increase insight into the http call that's failing?
   
   @rabbah yes that is the idea, in case of #4388 we only saw  that the 
cloudant view call was failing with 400 (bad request) in the log but had no 
indication about the root cause, to find out we had to reproduce the issue 
locally and in addition add temporary log statements. So we think it is better 
to have detailed error information already in the log if possible (eg 
`org.scalatest.exceptions.TestFailedException: The future returned an exception 
of type: java.lang.Exception, with message: Unexpected http response code: 400 
Bad Request (error: "query_parse_error", reason: "Limit is too large, must not 
exceed 268435456")` instead of finding out after the fact.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to