Hi, i got a problem in bot.py..
Opened this issue · 5 comments
niftylaboratory commented
DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
This is the error, and the bot when is hosted don't show any commands..
Thank you very much for your code!
lleballex commented
Try to replace loop = asyncio.get_event_loop()
with:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
niftylaboratory commented
Perfect thank you, now the bot runs good...
But when I wanna add a new parcel, after adding the name of the collection the bot replies this: Ой-ой... Что-то пошло не так - код 403
How can i fix it? Thank you!
lleballex commented
This is because the site has Cloudflare protection that blocks requests. I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can
niftylaboratory commented
Ohh okay mate, i'll try... thank you!
…On Wed, 2 Feb 2022 at 17:30, lleballex ***@***.***> wrote:
This is because the site has Cloudflare protection that blocks requests.
I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVXYP3PYQ33MVCWQIOAHDLTUZFL3BANCNFSM5NJTDMYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>