Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token in JSON at position 0 #41

Open
zairullahdev opened this issue Oct 30, 2022 · 4 comments
Open

SyntaxError: Unexpected token in JSON at position 0 #41

zairullahdev opened this issue Oct 30, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@zairullahdev
Copy link

Bug Description

Caused by erela js, using nodejs 1.18.10

Reproducible By

Erela js search

Expected Behavior

it search the song

Logs & Screenshots

Lava-Music Logs | Mon 31-10-2022 06:30:46.0210 [::]  Player for the Bot created!
Lava-Music Logs | Mon 31-10-2022 06:30:46.7160 [::]  Logging into the Bot ...
Lava-Music Logs | Mon 31-10-2022 06:30:48.5290 [::]  Shard #0 Ready                                  Lava-Music Logs | Mon 31-10-2022 06:30:48.5340 [::]  Discord Bot is now online and ready to be used! Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Bot User: Voidy#6320                            Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Guild(s): 3 Servers
Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Watching: 60 Members                            Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Prefix: <@997723699111280673>                   Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Commands: 97                                    Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Discord.js: v13.9.2
Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Node.js: v18.10.0                               Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Plattform: android arm64                        Lava-Music Logs | Mon 31-10-2022 06:30:48.5380 [::]  Memory: 22.98 MB / 84.34 MB
Lava-Music Logs | Mon 31-10-2022 06:30:48.5570 [::]  Set the first Status Text
Lava-Music Logs | Mon 31-10-2022 06:30:49.3230 [::]  Node connected :: 
Lava-Music Logs | Mon 31-10-2022 06:30:50.3970 [::]  Autoresume - Voice Channel is either Empty / no Listeners / got deleted
SyntaxError: Unexpected token  in JSON at position 0
    at JSON.parse (<anonymous>)
    at Y.json (/data/data/com.termux/files/home/project/discord-js-lavalink-Music-Bot-erela-js/node_modules/petitio/dist/index.js:30:574)
    at ke.json (/data/data/com.termux/files/home/project/discord-js-lavalink-Music-Bot-erela-js/node_modules/petitio/dist/index.js:30:2499)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)                    (node:7833) [DEP0160] DeprecationWarning: The multipleResolves event has been deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

Environment

Termux Android, NodeJS 1.18.10

Additional context

@zairullahdev zairullahdev added the bug Something isn't working label Oct 30, 2022
@dzlandis
Copy link

dzlandis commented Nov 8, 2022

Can reproduce issue using any NodeJS version above 16.6 (such as 16.17 and 16.18), perhaps a duplicate of #36 (which needs to be reopened).

@FC5570
Copy link

FC5570 commented Nov 14, 2022

I have the same issue on node v18.11.0 and petitio v1.4.0.

@SummerToast
Copy link

Well anyone have any idea how to fix this?

@dzlandis
Copy link

dzlandis commented Dec 4, 2022

@SummerToast install an earlier version of NodeJS for now I suppose. You can use something like nvm to make it easier.

@Vetlix Vetlix changed the title SyntaxError: Unexpected token in JSON at position 0 at JSON.parse (<anonymous>) at Y.json (/data/data/com.termux/files/home/project/discord-js-lavalink-Music-Bot-erela-js/node_modules/petitio/dist/index.js:30:574) at ke.json (/data/data/com.termux/files/home/project/discord-js-lavalink-Music-Bot-erela-js/node_modules/petitio/dist/index.js:30:2499) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) SyntaxError: Unexpected token in JSON at position 0 Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants