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 workflow #347

Closed
wants to merge 1 commit into from
Closed

fix workflow #347

wants to merge 1 commit into from

Conversation

bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Nov 27, 2024

This fixes the automation. The issue was that got throws an exception when it returns a status code outside of the 2xx and 3xx range.

Fun fact: while trying to fix this with undici, the PR size was larger, but with this change, the PR is smaller (The one that generates the automation).

@bjohansebas
Copy link
Member Author

bjohansebas commented Nov 28, 2024

Btw, I can migrate to Undici, which still supports CommonJS and is faster than Got. And it won't be necessary to use a try-catch when it throws a 404.

@UlisesGascon
Copy link
Member

I love more the idea of using Undici #352, but anyway I am happy to land this change first in case that we don't want to change library. Both options are fine for me. Thanks @bjohansebas for doing this!

@bjohansebas
Copy link
Member Author

Close in favor of #355

@bjohansebas bjohansebas closed this Jan 4, 2025
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