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 TypeError: reject.err is not a function #77

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

idebeijer
Copy link
Contributor

When I ran the crawler it failed due to a Type Error. I later found that due to my VPN the remote was resetting my connection after each request resulting in hitting req.on('error', (error), but as in the snippet below it resulted in a Type Error. The simple change in this PR fixes the Type Error.

tailwindui-crawler/index.mjs:108
      reject.err(error)
             ^
TypeError: reject.err is not a function

I replaced the reject.err with a console log to find out myself why it failed, result:

Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}

@kiliman kiliman merged commit f6ca0a1 into kiliman:master Apr 12, 2023
@kiliman
Copy link
Owner

kiliman commented Apr 12, 2023

Thanks for the PR!

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