Apify and Crawlee Official Forum

Home
Members
MrGookis
M
MrGookis
Offline, last seen 4 months ago
Joined August 30, 2024
I have an actor that I would like to select a different build version to be used when ran manually. On the actors page source tab > input tab > run options section; the build is set to the latest an cannot be changed there with a note of "Version of Actor is fixed to latest build of currently selected version. To change version, please use the selector on top of this page."
When I try to select from the top of the page my only option is latest and I cannot type the version I would like to use nor are the list of builds that can be found on the build tab of the actor. I also have the same issue when I try to do this in the builds tab, the dropdown only provided latest and I cannot type a specific build into it. I thought maybe I could just remove(deleting) the latest build returning to the version I would like to use, then rebuild once I have completed the manual run. However I cannot delete this build "Error: Cannot delete build (Deleting an Actor's default build is not allowed.)"

However when the actor set up to run on a scheduled I can provide the specific build version.

Any advice or help to allow me to select a different build version is greatly appreciated.
3 comments
L
M
v
I've done a new load to create a new actor using npx crawlee create app, then selecting the Playwright Typescript template. Once all npm packages have been loaded I then cd into app and tried npm start. I get the below error, I then tryied to download the crawlee playwright packages npm install crawlee playwright however I still have this issue trying to run the actor. I have not modified the template that is provided when using npx crawlee create. Any help or guidance is appreciated.

node_modules\typescript\lib\typescript.js:41322
if (condition === "default"

state.conditions.includes(condition)

isApplicableVersionedTypesKey(state.conditions, condition)) {
^

TypeError: state.conditions.includes is not a function
23 comments
J
P
A
M
I'm trying to build an actor using the below packages when I get the above error and many other related to the http-crawler.d.ts file.

"@crawlee/cheerio": "^3.11.1",
"apify": "^3.1.10",
"crawlee": "^3.5.4"

In my docker file I'm using:
apify/actor-node:20
FROM apify/actor-node-playwright-chrome:18

In total there are 142 errors in the same file, starting at: node_modules/@crawlee/http/internals/http-crawler.d.ts:387

Is anyone else having a similar issue?
4 comments
M
v
I updated the routes file due to a change on the website, then did a build and start on the Apify platform. The same dockerfile the worked prior now fails error codes below. I have tried adding the chown suggestion however it changes permissions of cach and fails. Looking for suggestion how to resolve, I am green when it comes docker deployment error. So any help is welcome.

2024-04-05T02:24:42.146Z npm 2024-04-05T02:24:42.148Z ERR! code EPERM 2024-04-05T02:24:42.149Z 2024-04-05T02:24:42.151Z npm ERR! 2024-04-05T02:24:42.152Z syscall 2024-04-05T02:24:42.153Z chmod 2024-04-05T02:24:42.154Z 2024-04-05T02:24:42.155Z npm ERR! 2024-04-05T02:24:42.155Z path 2024-04-05T02:24:42.156Z /home/myuser/.npmrc 2024-04-05T02:24:42.157Z 2024-04-05T02:24:42.158Z npm 2024-04-05T02:24:42.159Z ERR! errno 2024-04-05T02:24:42.159Z -1 2024-04-05T02:24:42.160Z 2024-04-05T02:24:42.161Z npm ERR! 2024-04-05T02:24:42.162Z npm 2024-04-05T02:24:42.162Z ERR! Your cache folder contains root-owned files, due to a bug in 2024-04-05T02:24:42.163Z npm ERR! previous versions of npm which has since been addressed. 2024-04-05T02:24:42.164Z npm 2024-04-05T02:24:42.164Z ERR! 2024-04-05T02:24:42.165Z npm 2024-04-05T02:24:42.166Z ERR! To permanently fix this problem, please run: 2024-04-05T02:24:42.167Z npm 2024-04-05T02:24:42.167Z ERR! 2024-04-05T02:24:42.168Z sudo chown -R 997:997 "/home/myuser/.npm" 2024-04-05T02:24:42.169Z 2024-04-05T02:24:42.170Z 2024-04-05T02:24:42.171Z
2 comments
v
A
I have created a scraper that works and runs fine locally however when deploying to Apify I get a lot of error that reference the http-crawler.d.ts. Looking for some guidance how to resolve this due to running locally just fine.
1 comment
M