Puppeteer Script for Chrome Connection
Budget: $10 – $30 USD
I'm seeking a freelance developer to fix my Puppeteer script so that it connects to a specific instance of the Chrome browser, Profile 16. See code attached.
1. Attempts to open a new browser and log into YouTube is denied, with error message "Couldn’t sign you in
This browser or app may not be secure. Learn more
Try using a different browser. If you’re already using a supported browser, you can try again to sign in."
2. Chrome browser, Profile 16 is already logged into YouTube, but my script cannot connect to it, with error message "Script started - attempting to connect to Chrome...
Attempting to connect to Chrome instance...
Read debug port 9222 from file
Connecting to Chrome on port 9222...
Failed to connect to Chrome: Failed to fetch browser webSocket URL from http://localhost:9222/json/version: fetch failed
This could be because:
1. Chrome is not running with the debugging port enabled
2. There's a firewall blocking the connection
3. The remote debugging port is not 9222
Attempting to check debug URL availability...
Debug URL request error:
Error checking debug URL:
Connection failed: TypeError: Failed to fetch browser webSocket URL from http://localhost:9222/json/version: fetch failed"
Requirements:
- The script should be able to connect to a pre-existing Chrome browser session.
- No need for the script to interact with page elements or handle browser extensions.
Ideal Skills:
- Proficiency in using Puppeteer
- Experience with Chrome DevTools and browser automation
- Ability to write clean, efficient scripts
1. Attempts to open a new browser and log into YouTube is denied, with error message "Couldn’t sign you in
This browser or app may not be secure. Learn more
Try using a different browser. If you’re already using a supported browser, you can try again to sign in."
2. Chrome browser, Profile 16 is already logged into YouTube, but my script cannot connect to it, with error message "Script started - attempting to connect to Chrome...
Attempting to connect to Chrome instance...
Read debug port 9222 from file
Connecting to Chrome on port 9222...
Failed to connect to Chrome: Failed to fetch browser webSocket URL from http://localhost:9222/json/version: fetch failed
This could be because:
1. Chrome is not running with the debugging port enabled
2. There's a firewall blocking the connection
3. The remote debugging port is not 9222
Attempting to check debug URL availability...
Debug URL request error:
Error checking debug URL:
Connection failed: TypeError: Failed to fetch browser webSocket URL from http://localhost:9222/json/version: fetch failed"
Requirements:
- The script should be able to connect to a pre-existing Chrome browser session.
- No need for the script to interact with page elements or handle browser extensions.
Ideal Skills:
- Proficiency in using Puppeteer
- Experience with Chrome DevTools and browser automation
- Ability to write clean, efficient scripts