Androz2091 / discord-giveaways-bot

🎁Giveways Bot using the discord-giveaways package
ISC License
202 stars 167 forks source link

SyntaxError: The storage file is not properly formatted #24

Closed whitskin closed 4 years ago

whitskin commented 4 years ago

Hello I'm using commando this is the error I got

0|shard    | (node:31837) UnhandledPromiseRejectionWarning: SyntaxError: The storage file is not properly formatted.
0|shard    |     at GiveawaysManager.getAllGiveaways (/root/dreambot/node_modules/discord-giveaways/src/Manager.js:272:27)
0|shard    |     at async GiveawaysManager._init (/root/dreambot/node_modules/discord-giveaways/src/Manager.js:363:26)
0|shard    | (node:31837) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|shard    | (node:31837) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Androz2091 commented 4 years ago

Hello, This is going to be fixed.

whitskin commented 4 years ago

Is the problem fixed?

Androz2091 commented 4 years ago

@whitskin can you try to install the package using Github? (npm install Androz2091/discord-giveaways) and retry? You should have more informations in the console.

whitskin commented 4 years ago

thanks, the problem is solved