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.

Error when using custom DB

See original GitHub issue

I just came across the npm package today. I set it up with MongoDB and made a test command for it. When the giveaway ended, instead of picking a winner it gave me this error:

(node:22344) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type 
boolean (false)

Anyone know why this is happening?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
KingCh1llcommented, Mar 16, 2021

Thank you so much for the help! I’m going to close this issue. Have a very nice day!

1reaction
Nico105commented, Mar 16, 2021

Oh, I forgot I actually fixed this error for someone a time ago, I just didn’t recognize it. Remove storage: false from your manager options, it’s what causes the error It will be removed from the examples in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Custom Databases - Auth0
You can use return errors resulting from your custom database connection for troubleshooting purposes. We will also cover some basic troubleshooting steps ...
Read more >
How to Add a Custom Database Error Page in ... - WPBeginner
A simple tutorial that shows you how to customize your error establishing database connection or other database error pages in WordPress.
Read more >
Support custom error messages from custom DB scripts #234
Is it working for all custom-db scripts? I followed your PR and use this code in my login script: return callback(new ValidationError('custom- ...
Read more >
Custom Database Error Page - CSS-Tricks
Put a file called “db-error.php” directly inside your /wp-content/ folder and WordPress will automatically use that when there is a database ...
Read more >
Scheduled jobs are failing with the error 'Cannot upload any ...
This error is presented when the CUSTOM database is full. Diagnosing The Problem. The CUSTOM and DATAMART database both contribute to this quota ......
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