Giter Site home page Giter Site logo

Comments (21)

arjun4414 avatar arjun4414 commented on July 19, 2024 1

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at fs.readFile (/root/aria-telegram-mirror-bot/out/drive/drive-auth.js:20:28)
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-06T04_30_55_365Z-debug.log

this is the error again i am getting please help me with this

from aria-telegram-mirror-bot.

gotenksIN avatar gotenksIN commented on July 19, 2024

All the errors are pretty explanatory
You've filled the .constants.js wrong
You've entered the username and not the userid and its outside the field

from aria-telegram-mirror-bot.

out386 avatar out386 commented on July 19, 2024

Like @gotenksIN said, you need the user ID, not your username. As mentioned here, to get the user ID:
Send a message to your bot then retrieve the update with:
https://api.telegram.org/bot<TOKEN>/getUpdates
In the json string returned you will find your chat_id/user_id.

Put that ID inside those two lists where you put your username. And delete the two numbers already in there - those are examples.

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

@gotenksIN can you help me in configure?

from aria-telegram-mirror-bot.

out386 avatar out386 commented on July 19, 2024

If doing what I wrote above is confusing, send a message to userinfobot . It will send you your user ID.
In SUDO_USERS, delete 012, 345, and replace it with your user ID. Delete the @Drdangjr.

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

done

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

after doing so

src/.constants.js:11:3 - error TS1005: ':' expected.

11 AUTHORIZED_CHATS: [678, 901], // Telegram chat IDs. Anyone in these chats can use the bot.
~~~~~~~~~~~~~~~~

src/.constants.js:11:19 - error TS1005: ',' expected.

11 AUTHORIZED_CHATS: [678, 901], // Telegram chat IDs. Anyone in these chats can use the bot.
~

src/.constants.js:11:31 - error TS1005: ':' expected.

11 AUTHORIZED_CHATS: [678, 901], // Telegram chat IDs. Anyone in these chats can use the bot.
~

Found 3 errors.

@out386

from aria-telegram-mirror-bot.

out386 avatar out386 commented on July 19, 2024

You probably missed the , at the end of line 10

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

[email protected] start /Users/arjunupadhyay/aria-telegram-mirror-bot

NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

/Users/arjunupadhyay/aria-telegram-mirror-bot/out/.constants.js:14
ENABLED: TRUE,
^

ReferenceError: TRUE is not defined
at Object. (/Users/arjunupadhyay/aria-telegram-mirror-bot/out/.constants.js:14:18)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/arjunupadhyay/aria-telegram-mirror-bot/out/download_tools/filename-utils.js:3:19)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/arjunupadhyay/aria-telegram-mirror-bot/out/download_tools/utils.js:4:23)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/arjunupadhyay/aria-telegram-mirror-bot/out/index.js:5:23)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/arjunupadhyay/.npm/_logs/2020-01-02T08_24_57_850Z-debug.log

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

for npm start

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

@out386

from aria-telegram-mirror-bot.

out386 avatar out386 commented on July 19, 2024

It wasn't TRUE, it was true. Just delete src/.constants.js and start over.

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

aria2c: unrecognized option `--rpc-listen-axll=false'
Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]...
See 'aria2c -h'.
Aria2c daemon started

npm start

[email protected] start /Users/arjunupadhyay/aria-telegram-mirror-bot
NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

A2C: Failed to open websocket. Run aria.sh first. Exiting.

i am getting this error

@out386

from aria-telegram-mirror-bot.

gotenksIN avatar gotenksIN commented on July 19, 2024

can you just please read the error
you made a spelling mistake
it should be --rpc-listen-all=false and not --rpc-listen-axll=false

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

Failed to download. Failed to make the directory /path/to/aria-telegram-mirror-bot/downloads (no trailing "/")/00abc390-2503-4896-898d-4ee374c7a3dc/Windows 10 X86 19H2 10in1 OEM pt-BR DEC 2019 {Gen2}/INFO, cause: Read-only file system

thanks the bot is on but when i download
this is shown on every file\

from aria-telegram-mirror-bot.

akhilnarang avatar akhilnarang commented on July 19, 2024

@arjun4414 read the readme, apply some logic, and try again. Otherwise please give up. Thanks!

from aria-telegram-mirror-bot.

techno-disaster avatar techno-disaster commented on July 19, 2024

@arjun4414
please read it again.

from aria-telegram-mirror-bot.

gotenksIN avatar gotenksIN commented on July 19, 2024

Failed to download. Failed to make the directory /path/to/aria-telegram-mirror-bot/downloads (no trailing "/")/00abc390-2503-4896-898d-4ee374c7a3dc/Windows 10 X86 19H2 10in1 OEM pt-BR DEC 2019 {Gen2}/INFO, cause: Read-only file system

thanks the bot is on but when i download
this is shown on every file\

read the error and guess why

from aria-telegram-mirror-bot.

arjun4414 avatar arjun4414 commented on July 19, 2024

sorry for all trouble but it is on !!!!!

thanks to all

from aria-telegram-mirror-bot.

gotenksIN avatar gotenksIN commented on July 19, 2024

send the debug log as well,
But my first suggestion is don't use a root account
Make a normal user with sudo ( or don't give sudo, won't matter as long as packages are installed)
And make it download to a directory writable by the user

from aria-telegram-mirror-bot.

out386 avatar out386 commented on July 19, 2024

SyntaxError: Unexpected end of JSON input

Fairly sure that you downloaded the wrong file from the Google Cloud Console and named it client_secret.json. The correct file will have "client_secret_" at the beginning of its name when you download it.
Do that step again.

from aria-telegram-mirror-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.