Open ryanleong opened 4 years ago
@ryanleong Hey Ryan! Could you please elaborate on your use case here? How would you use it? HTTP not the only transport and not all transports have status codes.
What if the CUBEJS-API-TOKEN
gets invalidated or the api request returns a 500, how can we gracefully handle that situation without cubejs / querybuilder returning error message
Currently, this issue is outside of our roadmap. However, feel free to provide a PR and we would be happy to review it and merge.
@vasilev-alex , if you can help me understand the part where error is captured and propagated, I will be happy to fix it for you !
Describe the bug In
@cubejs-client/core
, when an errors occurs, there is no way to get errors the HTTP error code.To Reproduce
Make a request using
@cubejs-client/core
like thiserror
in thecatch
block does not contain http error codeExpected behavior
error
should contain the HTTP error codeVersion:
^0.15.4
Additional context