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: database is destroyed

See original GitHub issue

We have a problem with sign in / sign out / sign in again and the scoped store API. Here is a script to reproduce the bug

hoodie.account.on('signin', function () {
  // logs error here
  hoodie.store('conversation').findAll().then(console.log, console.log)
})

var username = Math.random().toString(36).substr(2, 5)
hoodie.account.signUp({username: username, password:'test'})

.then(function () {
  return hoodie.account.signIn({username: username, password:'test'})
})

.then(function () {
  return hoodie.account.signOut()
})

.then(function () {
  return hoodie.account.signIn({username: username, password:'test'})
})

.then(function () {
  console.log('done')
})

I looked into it but could not yet figure it out. Thanks to @brunopedroso who found the error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:36 (32 by maintainers)

github_iconTop GitHub Comments

1reaction
alterxcommented, Mar 12, 2020

I see, I’ll try to dig into this a bit more since it seems like the structure changed a lot since this PR was created

0reactions
gr2mcommented, Mar 10, 2020

I’m sorry I don’t know, it’s been so long 😦 I think I didn’t finish the work for it. If you want to give it a look, I can review your pull requests, but not much else I can do right now, given my time constraints

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get error "Failed to destroy your database Yikes! The ...
Issue. Receiving error when trying to destroy Heroku Postgres database: Failed to destroy your database Yikes! The database was not destroyed due to...
Read more >
can't re-create PouchDB database with same name
Found a workaround. After destroy, create a new PouchDB object in the "then" function. It works fine next time you use it. Eg....
Read more >
Cloning a database "destroyed" it? - Neo4j - 46582
The good news is that your DBMS is safe. At a high level what's happening is that instead of being cloned your DBMS...
Read more >
How does destroydb destroy a database ?
How does destroydb destroy a database ? A rough guide to destroydb. If destroydb is failing (eg with a sigsegv / core dump...
Read more >
Fixing Corrupt or Broken Files and Databases in WordPress
Your database credentials aren't correctly entered in your wp-config. · Your server crashed · There was a server hardware failure · A bug...
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