PouchDB 4.0.3:当我在无法访问的数据库上调用 info() 时未捕获(承诺)
PouchDB 4.0.3 : Uncaught (In promise) when I call info() on unreachable database
从 PouchDB 4.0.3 开始,当我这样做时:
var remoteDbInstance = new PouchDB(*myCouchDbUrl*);
remoteDbInstance.info().then(function (resRemoteInfo) {
console.log(resRemoteInfo);
}).catch(function (err) {
console.log(err);
});
如果 myCouchDbUrl 响应:好的
但如果 myCouchDbUrl 无法访问:我获得
未捕获(承诺)
在 chrome 控制台中...
一个想法?
非常感谢
听起来像是 PouchDB 中的错误。您可以在 Github 上提交测试用例吗?该错误肯定会出现在您的 catch()
函数中。
编辑:好的,我可以确认,我已经提交了一个错误:https://github.com/pouchdb/pouchdb/issues/4358
从 PouchDB 4.0.3 开始,当我这样做时:
var remoteDbInstance = new PouchDB(*myCouchDbUrl*);
remoteDbInstance.info().then(function (resRemoteInfo) {
console.log(resRemoteInfo);
}).catch(function (err) {
console.log(err);
});
如果 myCouchDbUrl 响应:好的 但如果 myCouchDbUrl 无法访问:我获得
未捕获(承诺)
在 chrome 控制台中...
一个想法?
非常感谢
听起来像是 PouchDB 中的错误。您可以在 Github 上提交测试用例吗?该错误肯定会出现在您的 catch()
函数中。
编辑:好的,我可以确认,我已经提交了一个错误:https://github.com/pouchdb/pouchdb/issues/4358