Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Fixed apify-client basePath, bumped NPM package version

Jan Curncbca397b5dbc
diff --git a/package.json b/package.json
index ef8f740b8..de9b00125 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "apifier",
- "version": "0.0.33",
+ "version": "0.0.34",
"description": "Apifier runtime for JavaScript",
"main": "build/index.js",
"keywords": [
diff --git a/src/actor.js b/src/actor.js
index c63b28034..e0693829b 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -13,7 +13,7 @@ if (process.env[APIFY_ENV_VARS.API_BASE_URL]) {
clientOpts.protocol = parsed.protocol.replace(':', '');
clientOpts.host = parsed.hostname;
clientOpts.port = parsed.port;
- clientOpts.basePath = parsed.pathname;
+ clientOpts.basePath = parsed.pathname.replace(/\/$/, '');
}
/**