Skip to content
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

Handle unrecognized errors in guest create #929

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Jan 4, 2024

globus gcs collection create guest previously assumed that the shape
of an error from GCS met its expectations that detail would be dict
data. However, GCS docs do not guarantee this -- detail can be of
any type. Therefore, the inspection should explicitly check for this
and fail if the field is present with an unexpected type.
Failure to do so resulted in a get() call on a non-dict object.

Resolves #928

`globus gcs collection create guest` previously assumed that the shape
of an error from GCS met its expectations that `detail` would be dict
data. However, GCS docs do not guarantee this -- `detail` can be of
any type. Therefore, the inspection should explicitly check for this
and fail if the field is present with an unexpected type.
Failure to do so resulted in a `get()` call on a non-dict object.

Resolves globus#928
Copy link
Contributor

@derek-globus derek-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh noez!

@sirosen sirosen merged commit 7d5399a into globus:main Jan 4, 2024
19 checks passed
@sirosen sirosen deleted the handle-non-dict-gcs-detail branch January 4, 2024 16:37
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.

Error with command: globus gcs collection create guest
2 participants