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 net:: errors #1270

Merged
merged 2 commits into from
Nov 29, 2019
Merged

fix: ignore net:: errors #1270

merged 2 commits into from
Nov 29, 2019

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Nov 28, 2019

This aims to fix #1267. I don't know how to reproduce the error so I'm not sure if this is going to fix it. Those errors never have stack trace so it's hard to understand them. However, I believe this might fix it because it just ignores errors with net:: on it generated by unhandled rejections and exceptions.

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias merged commit c46c30e into master Nov 29, 2019
@hacdias hacdias deleted the fix/err branch November 29, 2019 09:32
@hacdias hacdias mentioned this pull request Nov 29, 2019
14 tasks
if (err.stack.includes('net::')) {
return
}

logger.error(err)
Copy link
Member

@lidel lidel Dec 1, 2019

Choose a reason for hiding this comment

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

could we move this logger before the if, so its always logged?
Or are we ignoring this on purpose, due to noise?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was just thinking about ignoring the noise caused by Internet issues...

Copy link
Member

Choose a reason for hiding this comment

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

Just to be sure I got this right, this is when ipfs-desktop tries to access API that is offline, or are there other uses of this code path?

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK, it's when we try to access the API and it is offline. However, it shouldn't happen many times.

On previous occasions, this would happen with Auto Updater, when we didn't catch the errors.

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.

net:: crashes
2 participants