-
Notifications
You must be signed in to change notification settings - Fork 2
fix: improve image cache error handling #214
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d1a1cb4
fix: handle cache script errors
rafaelcr f66c5b2
fix: tests
rafaelcr 49bc3d5
fix: try fetch in a function
rafaelcr 647d316
fix: force timeouts to test error handling
rafaelcr 0599ed1
fix: use error codes in script
rafaelcr 27d52fa
fix: unauthorized error handling
rafaelcr 42f80f7
fix: return to old fetch type
rafaelcr 6651710
fix: handle exit code explicitly
rafaelcr 450da6c
chore: try again with code exit
rafaelcr 9295611
fix: take code from error cause
rafaelcr d2a930a
fix: generate retryable errors
rafaelcr 02814fc
fix: remove explicit code zero
rafaelcr d5e276e
chore: debug log error
rafaelcr ea24061
chore: debug without all
rafaelcr 261d56d
chore: debug without all 2
rafaelcr d9c9ea0
chore: debug more
rafaelcr 4f45bef
fix: prmise await
rafaelcr a9ab41d
chore: detailed logs
rafaelcr 6f7738a
fix: log response
rafaelcr 8a02c20
fix: logger
rafaelcr c5eb6d3
fix: try with only one handler
rafaelcr f305cb8
fix: add error handlers to streams
rafaelcr 8409aa9
fix: mark invalid out as retryable
rafaelcr 0c45294
fix: validate if a cause exists
rafaelcr 7b7ae3c
fix: retry ECONNRESET
rafaelcr dd286c7
chore: comment
rafaelcr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
The
@google-cloud/storagelibrary can be used to handle the auth and upload a lot easier, it would be like 3-4 lines, I'm using it over here https://github.com/hirosystems/stacks-node-crawler/blob/720d4f9f79155a84a19c3d1028f0df1a54b3fbfb/src/index.ts#L5E.g.