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

fix: remove unnecessary retries and improve error handling #275

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

Praveen005
Copy link
Contributor

@Praveen005 Praveen005 commented Jul 22, 2024

This PR fixes #263
Fixes: #256
fixes: #269
fixes: #271
fixes: #273
fixes: #270

Now we directly return the error received from the API, instead of retrying.

I have also added functions to parse the error received and return only the error code and associated message to the user.

It also fixes issues: 256, 249, 269, 271, 273.

This will likely fix 270 as well.

Screenshots from the Result:

Issue 263:

Screenshot 2024-07-22 215418

Issue 256:

Screenshot 2024-07-22 215753

Issue 249:

Screenshot 2024-07-22 220013

Issue 269:

Screenshot 2024-07-22 220222

Issue 271:

Screenshot 2024-07-22 220433

Issue 273:

Screenshot 2024-07-22 222247

@uzaxirr
Copy link
Member

uzaxirr commented Jul 23, 2024

Amazing work, thank you for the PR

@uzaxirr uzaxirr merged commit 8eeb570 into civo:master Jul 23, 2024
1 check passed
@Praveen005
Copy link
Contributor Author

Thank you @uzaxirr! Looking forward to contributing more.

@fernando-villalba
Copy link
Contributor

@Praveen005 really amazing work! Thank you so much!

@Praveen005
Copy link
Contributor Author

Thank you @fernando-villalba.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants