-
Notifications
You must be signed in to change notification settings - Fork 64
RSDK-5175 - return file upload server error #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSDK-5175 - return file upload server error #482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do this in other parts of the SDK as well? e.g. I think upload_module_file has this too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One q
src/viam/app/app_client.py
Outdated
response = await stream.recv_message() | ||
assert response is not None | ||
if not response: | ||
await stream.recv_message() # causes us to throw appropriate gRPC error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do recv_trailing_metadata
in the other two functions, but recv_message
here. Any difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, thanks for catching that! Mistake on my part, it should be recv_trailing_metadata
:) Fixed!
Major changes
When there is no response to a file upload, throw the appropriate gRPC error.
Stacktrace (in relevant part) before change:
Stacktrace (in relevant part) after change: