Apify

Apify and Crawlee Official Forum

b
F
A
J
A

run logs on the platform

I have run cheerio crawler on the platform and it logs line like this:
2022-09-30T08:02:44.883Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. Cannot read properties of null (reading 'match') {"id":"PxlxlTCgnI7zPOi","url":"https://www........","retryCount":1}
I have two questions:
  1. why is there WARN instead of ERROR? I would prefer if it is ERROR and in red color, I believe it was always like this, was it changed?
  2. why I can't see file and line where the error ocurred?
What should I change to solve this?
L
H
2 comments
  1. Yeah, it was. We will see if more people will want error. The idea is that retries are normal and you should not care much, only the last retry is a hard error.
  2. The same thing, to not spam the log. You can print the whole error in errorHandler
Ok, from my view as somebody who is trying to debug the program on the platform >
  1. Waiting for the last retry is pretty time and CU consuming with large queue as that hard error will happen after a few hours. I want to see error as early as possible so I can change the code and try again.
  2. That makes the platform less user friendly for debugging as I need to write more code to see the error. So it is encouraged to develop locally and only push to platform after it is bug free, right? So far I have been writing the small scripts directly on the platform as it was faster.
Add a reply
Sign up and join the conversation on Discord
Join