question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backup fails to create

See original GitHub issue

Hi, whenever I try to use the b!create command, I get this error in console:

(node:19982) UnhandledPromiseRejectionWarning: TypeError: backup.create is not a function
    at Client.<anonymous> (/root/discord-backup/index.js:33:16)
    at Client.emit (events.js:311:20)
    at MessageCreateAction.handle (/root/discord-backup/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/root/discord-backup/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/root/discord-backup/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
    at WebSocketShard.onPacket (/root/discord-backup/node_modules/discord.js/src/client/websocket/WebSocketShard.js:435:22)
    at WebSocketShard.onMessage (/root/discord-backup/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
    at WebSocket.onMessage (/root/discord-backup/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:311:20)
    at Receiver.receiverOnMessage (/root/discord-backup/node_modules/ws/lib/websocket.js:801:20)
(node:19982) 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)
(node:19982) [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.

Anyone knows what’s wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Androz2091commented, Apr 7, 2020

It’s fixed. I tested to load your backup and it works perfectly. Upgrading discord-backup to v2.1.14 should fix it for you.

0reactions
MrD4riocommented, Apr 7, 2020

Everything works fine now, thanks again for your work @Androz2091 keep up with that!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backup fails when you create system image - Windows Client
This article provides a solution to an issue where backup fails when you try to create a system image. Applies to: Windows 7...
Read more >
Quick Fixes for Windows 10 Backup Failed Error
This article tells you how to fix Windows 10 backup failed easily, directly fix it or use other powerful backup software.
Read more >
Backup fails: Failed to create directory '' - VirtuozzoSupport
Symptoms. A container backup fails with the error: · Cause. The remote host, where the backups are stored, is inaccessible over the network....
Read more >
"Failed to create full backup task" in Vault ADMS console ...
An error occurs during creating a scheduled backup task in Autodesk Data Management Server Console.
Read more >
Windows 10 Backup Not Working? Top Solutions Here
They help you create a system image or back up important files to protect your computer. However, the Windows 10 Backup failed issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found