out386/aria-telegram-mirror-bot

Not Getting Bot auth url

dhairya137 opened this issue · 28 comments

Bot just say this
npm start

mirror-bot@2.0.0 start /home/ubuntu/aria-telegram-mirror-bot
NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

A2C: Websocket opened. Bot ready.
Failed to start the download. Unauthorized
cleanup: Deleted 06e5f5e8-3cef-47bf-9c07-b9ed7677f011

Why I am not getting auth url

Use lzzy12 bot this bot has very low support

the unauthorized part should make it clear whats the issue.
did you add your user id/chat id where you are using it to config??

Use lzzy12 bot this bot has very low support

if it aint broke dont fix it¯_(ツ)_/¯

I solved that
but now I tried to upload I got this
Failed to upload README.md to Drive. Get drive resumable url return invalid headers: {
"x-guploader-uploadid": "ABg5-UzcqYcErPE6jHEi02GPrmkRLT-U9JN-8qv7-kclnjpridjktHt_xbg8OMHaVuU0X2Gd1rG5PIWcDGiQHQnVSoklkQV_CA",
"vary": "Origin, X-Origin",
"content-type": "application/json; charset=UTF-8",
"content-length": "308",
"date": "Sun, 11 Oct 2020 08:01:45 GMT",
"server": "UploadServer",
"alt-svc": "h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"",
"connection": "close"
}

I added my aith code also

I added my aith code also

Is it a team drive ? If yes did you set true in the constants

NO simple folder'

should I do false

I falsed it but same error

If it is not a team drive then put false in it and then run tsc once

Already done But same error

You picture is not showing

now check

now check

Where you deployed this?

Redeploy may solve your issue.

I depolyed today

I depolyed today

Delete the deployed bot and redploy. Also i asked where did you deployed this? I would still recommend you lzzy12 bot its easier.

I depolyed on aws ec2

lzzy12 is in python I need in js(typescript)

Tag the main author i am not able to help more than this

ok
I am closing this issue beacause I am not able to solve this is after redeployment also

No, let's keep this open. Maybe I'll fix the uploading part some day.

No, let's keep this open. Maybe I'll fix the uploading part some day.

I don't think there is anything broken in the upload part, cause it's working fine for both of my bots. If the Deploy instruction is followed properly as per readme it will work fine.

image

The uploader isn't resumable, and doesn't handle errors at all. That's why I called it "broken". Otherwise, it still works most of the time. Might be time to take another look at the Drive SDK's own uploader.

Bot just say this
npm start

mirror-bot@2.0.0 start /home/ubuntu/aria-telegram-mirror-bot
NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

A2C: Websocket opened. Bot ready.
Failed to start the download. Unauthorized
cleanup: Deleted 06e5f5e8-3cef-47bf-9c07-b9ed7677f011

Why I am not getting auth url

How u fixed this error pls tell

Bot just say this
npm start

mirror-bot@2.0.0 start /home/ubuntu/aria-telegram-mirror-bot
NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

A2C: Websocket opened. Bot ready.
Failed to start the download. Unauthorized
cleanup: Deleted 06e5f5e8-3cef-47bf-9c07-b9ed7677f011

Why I am not getting auth url

Screenshot_20201212-170803
Getting same error pls tell how to fix