cube-js/cube
在 GitHub 查看@cubejs-client/core load method error does not contain HTTP error code
Open
#833 创建于 2020年7月14日
client:corehelp wanted
描述
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/corelike this
const makeQuery = async () => {
const cubejsApi = cubejs(
'CUBEJS-API-TOKEN',
{ apiUrl: 'http://localhost:4000/cubejs-api/v1' }
);
try {
const response = await cubejsApi.load(query);
return response.chartPivot();
} catch (error) {
console.log(error);
}
}
errorin thecatchblock does not contain http error code
Expected behavior
error should contain the HTTP error code
Version:
^0.15.4