This is the official developer community of Apify and Crawlee.
W1f2j0MrFsjEG54S0W1f2j0MrFsjEG54S0apidojo/twitter-user-scraperapidojo/twitter-user-scraper (used by mistake)/usr/src/app/node_modules/apify/charging.js:329const price = this.isAtHome ? this.pricingInfo[eventName].price : 1; // Use a nonzero price for local development so that the maximum budget can be reached
TypeError: Cannot read properties of undefined (reading 'price')
at ChargingManager.calculateMaxEventChargeCountWithinLimit (/usr/src/app/node_modules/apify/charging.js:329:67)
at file:///usr/src/app/dist/main.js:14:44
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)/usr/src/app/node_modules/apify/charging.js:329const price = this.isAtHome ? this.pricingInfo[eventName].price : 1; // Use a nonzero price for local development so that the maximum budget can be reached
TypeError: Cannot read properties of undefined (reading 'price')
at ChargingManager.calculateMaxEventChargeCountWithinLimit (/usr/src/app/node_modules/apify/charging.js:329:67)
at file:///usr/src/app/dist/main.js:14:44
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)


closeclose, errorerror, and timeout events are never triggered on the server side,
# Specify the base Docker image. You can read more about
# the available images at https://crawlee.dev/docs/guides/docker-images
# Using actor-node-playwright-chrome which is Debian-based (glibc) for onnxruntime-node compatibility
FROM apify/actor-node-playwright-chrome:22-1.54.1 AS builder
# Check preinstalled packages
RUN npm ls crawlee apify puppeteer playwright
# Copy just package.json and package-lock.json
# to speed up the build using Docker layer cache.
COPY --chown=myuser:myuser package*.json ./
# Install all dependencies. Don't audit to speed up the installation.
RUN npm install --include=dev --audit=false
# Next, copy the source files using the user set
# in the base image.
COPY --chown=myuser:myuser . ./
# Install all dependencies and build the project.
# Don't audit to speed up the installation.
RUN npm run build
# Create final image - using Playwright image for glibc (required by onnxruntime-node)
FROM apify/actor-node-playwright-chrome:22-1.54.1
# Check preinstalled packages
RUN npm ls crawlee apify puppeteer playwright
# Copy just package.json and package-lock.json
# to speed up the build using Docker layer cache.
COPY --chown=myuser:myuser package*.json ./
# Install NPM packages, skip optional and development dependencies
RUN npm --quiet set progress=false \
&& npm install --omit=dev \
&& echo "Installed NPM packages:" \
&& (npm list --omit=dev --all || true) \
&& echo "Node.js version:" \
&& node --version \
&& echo "NPM version:" \
&& npm --version \
&& rm -r ~/.npm
# Copy built JS files from builder image
COPY --from=builder --chown=myuser:myuser /home/myuser/dist ./dist
# Next, copy the remaining files and directories with the source code.
COPY --chown=myuser:myuser . ./
# Run the image.
CMD npm run start:prod --silent# Specify the base Docker image. You can read more about
# the available images at https://crawlee.dev/docs/guides/docker-images
# Using actor-node-playwright-chrome which is Debian-based (glibc) for onnxruntime-node compatibility
FROM apify/actor-node-playwright-chrome:22-1.54.1 AS builder
# Check preinstalled packages
RUN npm ls crawlee apify puppeteer playwright
# Copy just package.json and package-lock.json
# to speed up the build using Docker layer cache.
COPY --chown=myuser:myuser package*.json ./
# Install all dependencies. Don't audit to speed up the installation.
RUN npm install --include=dev --audit=false
# Next, copy the source files using the user set
# in the base image.
COPY --chown=myuser:myuser . ./
# Install all dependencies and build the project.
# Don't audit to speed up the installation.
RUN npm run build
# Create final image - using Playwright image for glibc (required by onnxruntime-node)
FROM apify/actor-node-playwright-chrome:22-1.54.1
# Check preinstalled packages
RUN npm ls crawlee apify puppeteer playwright
# Copy just package.json and package-lock.json
# to speed up the build using Docker layer cache.
COPY --chown=myuser:myuser package*.json ./
# Install NPM packages, skip optional and development dependencies
RUN npm --quiet set progress=false \
&& npm install --omit=dev \
&& echo "Installed NPM packages:" \
&& (npm list --omit=dev --all || true) \
&& echo "Node.js version:" \
&& node --version \
&& echo "NPM version:" \
&& npm --version \
&& rm -r ~/.npm
# Copy built JS files from builder image
COPY --from=builder --chown=myuser:myuser /home/myuser/dist ./dist
# Next, copy the remaining files and directories with the source code.
COPY --chown=myuser:myuser . ./
# Run the image.
CMD npm run start:prod --silent

{
"actorOutputSchemaVersion": 1,
"title": "Output schema of Skool Group Scraper",
"properties": {
"group_info": {
"type": "string",
"title": "Group Info",
"template": "{{links.apiDefaultDatasetUrl}}/items?view=group_info"
},
"items": {
"type": "string",
"title": "All Data",
"template": "{{links.apiDefaultDatasetUrl}}/items"
}
}
}{
"actorOutputSchemaVersion": 1,
"title": "Output schema of Skool Group Scraper",
"properties": {
"group_info": {
"type": "string",
"title": "Group Info",
"template": "{{links.apiDefaultDatasetUrl}}/items?view=group_info"
},
"items": {
"type": "string",
"title": "All Data",
"template": "{{links.apiDefaultDatasetUrl}}/items"
}
}
}


apify pushapify push on my actor. What is this?--force--force to override but while that makes the deploy succeed, my actor still fails in production with the error Error: Cannot find module '/usr/src/app/dist/main.js'Error: Cannot find module '/usr/src/app/dist/main.js'. Help.
apify-actor-startapify-actor-start event. Link: https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event?fpr=7p4wu#use-synthetic-start-event-apify-actor-startapify-actor-startapify-actor-start event in our PPE actor? apify-actor-startapify-actor-start event.