Closed sdelaye closed 7 years ago
Hello @sdelaye, thank you for trying Noteself.
I didn't make any investigation yet, but I guess that several things are happening:
In any case, you can create a free account on cloudant which makes all this things easier.
Hello,
1- I downloaded the empty html file: is it consider as http or https ?
2- CORS is alreadyt activated (option in the config file).
3- I created a cloudant account. It said XMWHttpRequest error code: 0 CouchDB URL: http://mymo.cloudant.com/ (I tried https )
Remote database name: mymo What 's wrong ?
Can you send an exemple of config ?
Le 03/01/2017 à 20:06, Daniel Rodríguez Rivero a écrit :
Hello @sdelaye https://github.com/sdelaye, thank you for trying Noteself.
I didn't make any investigation yet, but I guess that several things are happening:
- you're trying to access an http server from an https origin. Browsers prevent this kind of things. Both the server and the client should speak http or https, never mix.
- if you are using a standard version of couchdb then CORS is not activated by default. You have to activate it for being able to access your database server from online version of Noteself. Let me look for instructions about how to setup CORS.
In any case, you can create a free account on cloudant which makes all this things easier.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NoteSelf/NoteSelf.github.io/issues/5#issuecomment-270195716, or mute the thread https://github.com/notifications/unsubscribe-auth/AH-o85R0deoPc4txgeR32xIyq1WdM4emks5rOpxPgaJpZM4LYcy6.
Hello @sdelaye
npm install -g add-cors-to-couchdb
add-cors-to-couchdb
Or if your database is not at 127.0.0.1:5984:
$ add-cors-to-couchdb http://me.example.com -u myusername -p mypassword
Cloudant also requires you to enable CORS. It is very straighforward:
If any of those makes noteself work for you I will try to reproduce it myself. Regards
Solved ! It works with those guidelines. Thank you very much.
Dear @sdelaye, you're welcome I'm curious about if both servers are now working? Cloudant and your custom one?
Hello,
Yes, both servers are now working.
But maybe I should work a little bit more with mine to secure the server: https, limited grants...
At the moment, it's open bar !
Best,
Stephane
Le 04/01/2017 à 15:23, Daniel Rodríguez Rivero a écrit :
Dear @sdelaye https://github.com/sdelaye, you're welcome I'm curious about if both servers are now working? Cloudant and your custom one?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NoteSelf/NoteSelf.github.io/issues/5#issuecomment-270381596, or mute the thread https://github.com/notifications/unsubscribe-auth/AH-o8xEP9siL8x4qtjHhrtOoZK3sWKSuks5rO6tdgaJpZM4LYcy6.
Hello. Pouchdb on my own server (it works for me, it should work for you too): curl -X GET http://mymo:mymo@myprivatepad.fr:5984/mymo/ {"db_name":"mymo","doc_count":1,"doc_del_count":0,"update_seq":2,"purge_seq":0,"compact_running":false,"disk_size":8283,"data_size":285,"instance_start_time":"1483140014779458","disk_format_version":6,"committed_update_seq":2}
In NoteSelf:
===SYNC Error starting==={ "status": 0, "name": "unknown" }
Parameters in TiddlyPouch tab: CouchDB URL: http://myprivatepad.fr:5984 Database: mymo user: mymo
When I click only, ask for login/password: "mymo" / "mymo" Any Idea ?