Problems with Pouchdb access

Asked

Viewed 39 times

0

Using Pouchdb with a REST API to replicate.to? Next, I follow the simple example of Pouchdb:

bancolocal = new PouchDB('http://192.168.1.100:5984/bancoexterno');

The problem is when I run the application, I noticed by Crhome Inspect that it returns a URL of type http://192.168.1.100:5984/bancoexterno/ adding a “/” at the end of the address , directing to a directory not to a RESP service, and thus not locating the DB and presented a:

ERR_CONNECTION_REFUSED.

Version of Ionic 2.0.0-beta.31

The database is Sqlite3

Note: Resp is perfect, in the browser it responds correctly with the database as well as in Crhome Advanced REST client.

  • I don’t think the bar at the end compromises the request. Using the Curl to terminal command to call your get url works?

  • Giuliana thank you for answering. At the moment I gave up making this request, but soon I will try (only for testing) and put the result with the Curl and put the result.

  • All right, but try it! Soon it’s euphemism for never... kkkk. Needing help just say ;)

  • "Soon is euphemism for never..." I liked it. You can leave in need of help I will ask, and look that I am beginner.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.