Error: database is destroyed
See original GitHub issueWe 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:
- Created 7 years ago
- Comments:36 (32 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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