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

Uncatchable error #339

Open
ehystiv opened this issue Jan 27, 2020 · 3 comments
Open

Uncatchable error #339

ehystiv opened this issue Jan 27, 2020 · 3 comments

Comments

@ehystiv
Copy link

ehystiv commented Jan 27, 2020

When i try lots of connections, sometimes appears this error:

error: CRAWLER Error Error: ESOCKETTIMEDOUT when fetching http://adomain.com/post/3427

How can I catch it? None of my try/catch seems to catch this error

@mike442144
Copy link
Collaborator

Crawler will retry for you when retry times less than your configuration, after that an error will appear as the first argument of callback function, which means you have to handle the error by yourself, but not before that.

@sicdigital
Copy link

I have this same issue, some errors are not catchable -- SSL errors for example print an error before the callback and aren't passed.

@sicdigital
Copy link

I submitted a pull request which addresses this issue - #368

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

No branches or pull requests

3 participants