Skip to content

Handling Errors from failedRequestHandler in Single URL Flow with PlaywrightCrawler #2175

Answered by wojtekKrol
wojtekKrol asked this question in Q&A
Discussion options

You must be logged in to vote

I manage to solve this issue by adding reject

 const promises = urls.map(
      (url) =>
        new Promise<R | null>((resolve, reject) => {
          this.urlToHandler[url] = { resolve, reject } 
        })
    )
and properly handling it in other methods

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wojtekKrol
Comment options

@metalwarrior665
Comment options

@wojtekKrol
Comment options

@wojtekKrol
Comment options

Answer selected by wojtekKrol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants