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: ignore fetch error from test endpoint #164

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Jan 17, 2024

Ignore all FetchError from api/test endpoint, which are operation error from http (network timeout, error 500, etc ...).

Error details returned already as JSON RPC response, no need to log them to our error logger.

Fix SNAPSHOT-WEBHOOK-17

@wa0x6e wa0x6e requested a review from ChaituVR January 17, 2024 09:56
Copy link

sentry-io bot commented Jan 17, 2024

Sentry issue: SNAPSHOT-WEBHOOK-17

@@ -20,7 +20,7 @@ router.get('/test', async (req, res) => {

return res.json({ url, success: true });
} catch (e: any) {
if (e.code !== 'ERR_INVALID_URL') {
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we can remove capture from this endpoint.

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

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

utAck

@wa0x6e wa0x6e merged commit abe462a into master Jan 18, 2024
4 checks passed
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