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.

Fixing container URL usage in liveview

Marek Trunkat6d0634b5bbde
diff --git a/package.json b/package.json
index ab892aaa1..e0f58e294 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "apify",
- "version": "0.5.44",
+ "version": "0.5.45",
"description": "Web scraping and automation SDK",
"main": "build/index.js",
"keywords": [
diff --git a/src/puppeteer_live_view_client.js b/src/puppeteer_live_view_client.js
index 1e9fe5d00..322b2833c 100644
--- a/src/puppeteer_live_view_client.js
+++ b/src/puppeteer_live_view_client.js
@@ -274,7 +274,7 @@ export const layout = (url) => {
<div id="index">Waiting for WebSocket connection.</div>
<div id="page-detail" class="hidden"></div>
<script>
- const ws = new WebSocket("${url}");
+ const ws = new WebSocket("${url.replace('https', 'wss')}");
const DESTROY_FADEOUT = ${DESTROY_FADEOUT_MILLIS};
const createPage = ${createPage.toString()};
const createPageCollection = ${createPageCollection.toString()};