It's working locally but not with browserless
The type of issue your facing may have different root causes, is your site not loading or are you experiencing different behaviors or timeouts?
Here are a couple things you can try if the site won't load properly:
Use the &headless=false flag to emulate a browser window and run headful (xvsb), it also sets a use-like user agent.
Some sites check your geolocation and will only display information for people in certain countries. Our shared fleet is in San Francisco, so if the site isn't accesible from there, you'll have to use a proxy in a certain country, or subscribe to our Dedicated plan which allows you to select a server location.
There might be anti-bot detection mechanisms, which may not come up when running in your local environment, since your IP is residential, and your fingerprint is solid. So you may want to implement anti-bot mechanisms.
This one's not so common, but it could be the browser's version, you can check the current version on the shared fleet in our docs. Our dedicated plans allow you to choose your browser and puppeteer version, we even support chrome stable which comes with additional codecs and helps with sites that require displaying or streaming media, such as twitch and similar sites.
If the site is loading, but it's behaving differently or you're experiencing timeouts you might have set a very small timeout on a navigating method or on a waiting method, which works when running locally, but you might have to increase timeouts when using browserless, since you're communicating through the network to perform all actions and some latency is expected to be added.
Here are a couple things you can try if the site won't load properly:
Use the &headless=false flag to emulate a browser window and run headful (xvsb), it also sets a use-like user agent.
Some sites check your geolocation and will only display information for people in certain countries. Our shared fleet is in San Francisco, so if the site isn't accesible from there, you'll have to use a proxy in a certain country, or subscribe to our Dedicated plan which allows you to select a server location.
There might be anti-bot detection mechanisms, which may not come up when running in your local environment, since your IP is residential, and your fingerprint is solid. So you may want to implement anti-bot mechanisms.
This one's not so common, but it could be the browser's version, you can check the current version on the shared fleet in our docs. Our dedicated plans allow you to choose your browser and puppeteer version, we even support chrome stable which comes with additional codecs and helps with sites that require displaying or streaming media, such as twitch and similar sites.
If the site is loading, but it's behaving differently or you're experiencing timeouts you might have set a very small timeout on a navigating method or on a waiting method, which works when running locally, but you might have to increase timeouts when using browserless, since you're communicating through the network to perform all actions and some latency is expected to be added.
Updated on: 05/09/2023
Thank you!