Forums

Error while using Playwright and telebot

Hello guys. Recently I create a telegram bot which use telebot and playwright. I install all necessary stuffs. Than I run my app. Everything working fine till it's come to playwright part. Generally I open a browser and go to page and take some data. It opens browser but when its come to going page it gives error. page.goto(link) -> error

The error itself : ERROR - TeleBot: "Infinity polling exception: net::ERR_TUNNEL_CONNECTION_FAILED at https://mylinkwasthere

navigating to "https://mylinkwasthere", waiting until "load"

How can I fix this. Waiting before going to page doesn't help

It'll be that you're hitting the api whitelist - https://help.pythonanywhere.com/pages/RequestingAllowlistAdditions/