Skip to content

Introduce a dedicated type for API errors. - #2072

Merged
Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:apierror
Oct 1, 2026
Merged

Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
juli4n:apierror

Conversation

@juli4n

Copy link
Copy Markdown
Collaborator

Before this PR, we were using grpc status errors to propagate the gRPC error a service need to return to client through the call stack.

The main issue with this approach is that it can unintentionally propagate errors from upstream services.

This change updates both atelet and ateom to use the new error type. A follow-up will update ate-apiserver, which is larger.

Before this PR, we were using grpc `status` errors to propagate the
gRPC error a service need to return to client through the call stack.

The main issue with this approach is that it can unintentionally propagate
errors from upstream services.

This change updates both atelet and ateom to use the new error type. A follow-up
will update ate-apiserver, which is larger.
@laoj2
Luiz Oliveira (laoj2) marked this pull request as ready for review October 1, 2026 20:45
@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Oct 1, 2026
Merged via the queue into agent-substrate:main with commit 49161f0 Oct 1, 2026
10 checks passed
Julian Gutierrez Oschmann (juli4n) added a commit to juli4n/substrate that referenced this pull request Oct 2, 2026
This change is the counterpart of agent-substrate#2072, which changes the type
used to report errors in atelet and ateom.

The server interceptor will map grpc status from apierror packages,
not from grpc status errors.
Julian Gutierrez Oschmann (juli4n) added a commit to juli4n/substrate that referenced this pull request Oct 2, 2026
This change is the counterpart of agent-substrate#2072, which changes the type
used to report errors in atelet and ateom.

The server interceptor will map grpc status from apierror packages,
not from grpc status errors.
Julian Gutierrez Oschmann (juli4n) added a commit to juli4n/substrate that referenced this pull request Oct 2, 2026
This change is the counterpart of agent-substrate#2072, which changes the type
used to report errors in atelet and ateom.

The server interceptor will map grpc status from apierror packages,
not from grpc status errors.
Julian Gutierrez Oschmann (juli4n) added a commit to juli4n/substrate that referenced this pull request Oct 5, 2026
This change is the counterpart of agent-substrate#2072, which changes the type
used to report errors in atelet and ateom.

The server interceptor will map grpc status from apierror packages,
not from grpc status errors.
Da Huang (git286) pushed a commit to git286/substrate that referenced this pull request Oct 5, 2026
)

This change is the counterpart of agent-substrate#2072, which changes the type used to
report errors in atelet and ateom.

The server interceptor will map grpc status from apierror packages, not
from grpc status errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants