Comments (21)
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.
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.
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.
@gotenksIN can you help me in configure?
from aria-telegram-mirror-bot.
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.
done
from aria-telegram-mirror-bot.
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.
from aria-telegram-mirror-bot.
You probably missed the ,
at the end of line 10
from aria-telegram-mirror-bot.
[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.
for npm start
from aria-telegram-mirror-bot.
from aria-telegram-mirror-bot.
It wasn't TRUE
, it was true
. Just delete src/.constants.js
and start over.
from aria-telegram-mirror-bot.
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
from aria-telegram-mirror-bot.
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.
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.
@arjun4414 read the readme, apply some logic, and try again. Otherwise please give up. Thanks!
from aria-telegram-mirror-bot.
@arjun4414
please read it again.
from aria-telegram-mirror-bot.
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.
sorry for all trouble but it is on !!!!!
thanks to all
from aria-telegram-mirror-bot.
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.
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)
- Cannot enter authentication code. HOT 2
- Download isn't starting HOT 1
- 您无权在此处使用此漫游器 HOT 2
- Not Getting Bot auth url HOT 28
- Mirror bot
- Bot not starting up HOT 2
- bot not starting up
- A2c failed to open websocket HOT 1
- Failed to upload README.md to Drive. The user does not have sufficient permissions for this file.
- NPX? HOT 10
- Error when doing npm start HOT 5
- Devil
- How can I uninstall the bot? HOT 1
- A small question. HOT 1
- npm start 61 error HOT 1
- failed. Download aborted.
- torrent not downloading
- Unable to start the server
- Mirror bot cannot access shared drive of another group, i have joined that shared drive through Google groups
- Mirror bot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aria-telegram-mirror-bot.