Problem
The current error tracing and reporting mechanism does not provide sufficient details about the root cause of errors.
In many cases, only high-level or generic messages (e.g. connection error, UNKNOWN rpc error) are shown, without actionable context.
As a result:
-
It is difficult or impossible to locate the real source of failures
-
Developers cannot reliably determine whether the issue is caused by:
- network conditions
- API changes
- invalid parameters
- internal state corruption
- third-party dependencies
-
Providing a proper fix or even a meaningful bug report becomes very hard
Current Behavior
-
Errors are often logged as console.error with minimal messages
-
Stack traces frequently point to bundled or minified code without:
- original error type
- error code mapping
- request/response context
- retry / timeout information
-
Some errors are reported as Non-Error exceptions, losing semantic meaning
Expected / Proposed Improvement
Introduce a more detailed and structured error reporting system, for example:
This would significantly improve:
- Debuggability
- Issue triage efficiency
- The ability for contributors and users to propose accurate fixes
Motivation
Without detailed error reports, developers are effectively debugging blind.
Improving error visibility would greatly enhance developer experience and overall reliability of the project.

Problem
The current error tracing and reporting mechanism does not provide sufficient details about the root cause of errors.
In many cases, only high-level or generic messages (e.g.
connection error,UNKNOWN rpc error) are shown, without actionable context.As a result:
It is difficult or impossible to locate the real source of failures
Developers cannot reliably determine whether the issue is caused by:
Providing a proper fix or even a meaningful bug report becomes very hard
Current Behavior
Errors are often logged as
console.errorwith minimal messagesStack traces frequently point to bundled or minified code without:
Some errors are reported as Non-Error exceptions, losing semantic meaning
Expected / Proposed Improvement
Introduce a more detailed and structured error reporting system, for example:
Preserve and expose:
Include contextual metadata:
Clearly distinguish:
This would significantly improve:
Motivation
Without detailed error reports, developers are effectively debugging blind.
Improving error visibility would greatly enhance developer experience and overall reliability of the project.