You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am more than certain I am doing something dumb but I can't seem to figure out what my issue might be.
I have a pretty simply setup:
pouch_proxy.js -- proxies to couchDB (which has all auth turned off right now):
`
const socketPouchServer = require('socket-pouch/server');
socketPouchServer.listen(80, {remoteUrl: 'http://127.0.0.1:5984'}, function () {
console.log('PouchDB Proxy Started Pointed at LocalHost CouchDB');
});
`
pouch.js -- Client that a remoteDB and attempts grab all the docs from it:
`
const PouchDB = require('pouchdb');
PouchDB.adapter('socket', require('socket-pouch/client'));
When running pouch_proxy.js with debug I get no output.
Any hints as to what I might be doing wrong? I can connect to the couchDB on localhost:5984 and the DB being called by the client exists and is full of docs.
Thanks!
The text was updated successfully, but these errors were encountered:
Have you tried looking at the unit tests to see how they work? If you can get those running on your machine (which should be as easy as npm install and npm run dev) then you can confirm what code is necessary in order to get this module to work. Otherwise from looking at the information provided it's difficult for me to provide guidance...
Hello,
I am more than certain I am doing something dumb but I can't seem to figure out what my issue might be.
I have a pretty simply setup:
pouch_proxy.js -- proxies to couchDB (which has all auth turned off right now):
`
const socketPouchServer = require('socket-pouch/server');
socketPouchServer.listen(80, {remoteUrl: 'http://127.0.0.1:5984'}, function () {
console.log('PouchDB Proxy Started Pointed at LocalHost CouchDB');
});
`
pouch.js -- Client that a remoteDB and attempts grab all the docs from it:
`
const PouchDB = require('pouchdb');
PouchDB.adapter('socket', require('socket-pouch/client'));
const remoteDB = new PouchDB('new_gdax_limit_events', {
adapter: 'socket',
url: 'ws://127.0.0.1:80',
});
remoteDB.allDocs({
include_docs: true
}).then(function (result) {
console.log(result);
}).catch(function (err) {
console.log(err);
});
`
The resulting output from pouch.js is:
{ [Error: xhr poll error] type: 'TransportError', description: 503 }
Running pouch.js with debug gives me:
pouchdb:socket:client constructor called +0ms { adapter: 'socket', url: 'ws://127.0.0.1:80', name: '_pouch_new_gdax_limit_events' } { [Error: xhr poll error] type: 'TransportError', description: 503 }
When running pouch_proxy.js with debug I get no output.
Any hints as to what I might be doing wrong? I can connect to the couchDB on localhost:5984 and the DB being called by the client exists and is full of docs.
Thanks!
The text was updated successfully, but these errors were encountered: