-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with couchdb #165
Comments
I think I've managed to locate the issue. When starting with a fresh instance of nomie, and you fill in the couchdb settings in settings, the settings will not be properly stored in the browser local storage. To be more precise, after the couchdb settings are verified, the credentials are successfully stored in the local storage, but are overwritten moments after. After what I can gather: the I have suggested this as a hotfix in pouchdb.svelte. Honestly I'm not familiar with svelte or npm, so I will leave it to some of your more capable hands to evaluate if this is an appropriate fix for this issue. |
in case anyone else runs into this too, i worked around this by manually setting the CouchDB credentials in the localStorage API. i have an iphone + macbook, and i followed these steps:
var dbDetails = localStorage.getItem('n4/storage/pouchdb-remote')
dbDetails = JSON.parse(dbDetails)
dbDetails.url = {YOUR-COUCHDB-URL}
dbDetails.username = {DB-USERNAME}
dbDetails.password = {DB-PASSWORD}
dbDetails.database = {DB-DATABASE-NAME}
localStorage.setItem('n4/storage/pouchdb-remote', JSON.stringify(dbDetails); then exited and reopened nomie on my phone, and syncing is working! |
I've hosted my own couchdb. When testing couch with normal http get/put requests it is working fine. When I enter details in nomie I get a message that it connects and asks if I want to store the credentials. I click yes, but when I change tabs away from settings and back to settings again my couchdb settings are blank. No data are sent to my couchdb server. Any ideas?
The text was updated successfully, but these errors were encountered: