Apify Discord Mirror

Home
Members
robertandrews
r
robertandrews
Offline, last seen 5 months ago
Joined August 30, 2024
In the Apify API, the end point /actor-runs returns the result of an Actor run. This returns status "SUCCEEDED" because the actor ran successfully. However, the process INSIDE the actor (PuppeteerCrawler) threw several Errors and it didn't actually do as I intended. Can this be surfaced from anything via the Apify API?
1 comment
r
Why does Apify think this completed successfully when the log shows that it had an error?


Plain Text
<snip>
2024-01-14T15:18:00.631Z ERROR PuppeteerCrawler: Request failed and reached maximum retries. TimeoutError: Waiting for selector `#video-details` failed: Waiting failed: 30000ms exceeded
2024-01-14T15:18:00.634Z     at Timeout.<anonymous> (/home/myuser/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:64:32)
2024-01-14T15:18:00.636Z     at listOnTimeout (node:internal/timers:559:17)
2024-01-14T15:18:00.639Z     at processTimers (node:internal/timers:502:7) {"id":"mQnbcE2JCeZcP3c","url":"https://studio.brightcove.com/products/videocloud/media/videos/6344609341112","method":"GET","uniqueKey":"https://studio.brightcove.com/products/videocloud/media/videos/6344609341112"}
2024-01-14T15:18:00.641Z Request https://studio.brightcove.com/products/videocloud/media/videos/6344609341112 failed too many times.
2024-01-14T15:18:00.752Z INFO  PuppeteerCrawler: All the requests from request list and/or request queue have been processed, the crawler will shut down.
2024-01-14T15:18:01.199Z INFO  PuppeteerCrawler: Crawl finished. Final request statistics: {"requestsFinished":0,"requestsFailed":1,"retryHistogram":[null,null,null,1],"requestAvgFailedDurationMillis":43283,"requestAvgFinishedDurationMillis":null,"requestsFinishedPerMinute":0,"requestsFailedPerMinute":0,"requestTotalDurationMillis":43283,"requestsTotal":1,"crawlerRuntimeMillis":193388}
2024-01-14T15:18:01.202Z INFO  PuppeteerCrawler: Error analysis: {"totalErrors":1,"uniqueErrors":1,"mostCommonErrors":["1x: Waiting for selector `#video-details` failed: Waiting failed: 30000ms exceeded (/home/myuser/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:64:32)"]}
2024-01-14T15:18:01.203Z Crawler finished.
2024-01-14T15:18:01.472Z INFO  Actor finished successfully (exit code 0)
4 comments
v
r
Is it possible to publish/sync to a GitHub repo from the Apify web IDE?

So far, I have worked primarily in the IDE and not with the SDK locally.

I want to take an initial version backup to GitHub. I do not yet have a repo, but could make an empty one.

According to the instructions I’ve read, it seems the GitHub sync is more geared toward pulling down changes from GitHub to Apify.

If the only way is to first get a local version of the code and publish it to GitHub, I’m a bit cautious… what should I take… the contents of the source-code.zip export?

How is it supposed to work?
2 comments
L
o
Is it possible to roll back to a previous version of a build's code? I made some damaging changes and I need to go back. No versioning used.
I see the list of builds, but it looks like the logs rather than the code.
1 comment
A