cube-js / cube-js/cube

Backend error cant catch up in http call Angular

Open
#821 0 comments 0 reactions 0 assignees View on GitHub
client:ngx
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
Dears, I'm using frontend as Angular. I integrated backend with Node Js, it's working perfectly. But sometimes if backend service is throwing any error means, can't catch up in UI,

I'm using `@cubejs-client/ngx` package and for Http call, I'm using a watch with subscribe. In cube js documentation they prefer use catch block, it's not working
I pasted my piece of code for your reference

**To Reproduce**
Steps to reproduce the behavior:
To reproduce the same error, In filters number type dimension just pass a string.
It will return something like this `Error: Error: invalid input syntax for type numeric:` from the backend. You cant get a response in frontend

**Expected behavior**
If suppose any error is thrown from the backend, it should be catch up in error block.

**Version:**
"@cubejs-client/core": "^0.19.43"
"@cubejs-client/ngx": "^0.19.43"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.