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

Use linode_api4 API error handling logic; remove format_api_error(...) helper #624

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

lgarber-akamai
Copy link
Contributor

📝 Description

This pull request updates the top-level API error formatting logic to use the formatting logic provided by the Python SDK, which produces errors with more meaningful information (request method, URL, etc.):

POST /v4beta/linode/instances: [400] type: A valid plan type by that ID was not found; region: region is not valid

This pull request also bumps the minimum linode_api4 version from 5.22.0 to 5.24.0.

✔️ How to Test

The following test steps assume you have pulled down this PR locally and run make deps.

Integration Testing

make TEST_ARGS="-v api_error" test

@lgarber-akamai lgarber-akamai added the improvement for improvements in existing functionality in the changelog. label Nov 20, 2024
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner November 20, 2024 20:22
@lgarber-akamai lgarber-akamai requested review from zliang-akamai and ezilber-akamai and removed request for a team November 20, 2024 20:22
@lgarber-akamai lgarber-akamai marked this pull request as draft November 21, 2024 16:00
@lgarber-akamai lgarber-akamai marked this pull request as ready for review November 21, 2024 17:18
@lgarber-akamai
Copy link
Contributor Author

The documentation validation error will be resolved in #625

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

Test passing locally!

@zliang-akamai zliang-akamai self-requested a review November 25, 2024 05:41
Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

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

Nice work!

@lgarber-akamai lgarber-akamai merged commit f26d3a5 into linode:dev Nov 25, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement for improvements in existing functionality in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants