-
Notifications
You must be signed in to change notification settings - Fork 182
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
TypeError: Object.defineProperties called on non-object #166
Comments
You should set |
|
Hmmm ... haven't tests this against CouchDB 1.3.0. I'll reopen this for now. |
Thanks @indexzero, I appreciate it. |
Hi @pulkitsinghal , |
forgot to say that the version of my couchdb is 1.5.0, and the version of my cradle is 0.6.7 |
@Powpow-Shen I've moved away from CouchDB completely since last year. But as far as i remember I was using names like: |
@pulkitsinghal The names look fine. The fix I sent should be able to fix the issue. |
HI, I'm getting the same problem reported on this thread.
Tested with raw: true and raw: false. Error stack:
I'm creating databases dynamically so I really need it working ;) Regards. |
Hi @jcataluna , |
I had this problem. But for me it turns out that the error was coming from auth before db creation. Edit: Never mind. It isn't the auth. I am trying to dynamically create a new db after checking if it already exists. It worked one time. Now I get the error again. Not sure what's causing this! |
Using the latest version from npm i'm experiencing this issue when I connect to a local db and I try to create a database.
Here the code used:
Running this code once I receive this error:
/node_modules/cradle/lib/cradle/response.js:126
return Object.defineProperties(obj, descriptor);
^
TypeError: Object.defineProperties called on non-object
at Function.defineProperties (native)
at Object.extend (/node_modules/cradle/lib/cradle/response.js:126:19)
at Request._callback (/node_modules/cradle/lib/cradle.js:187:18)
at Request.callback (/node_modules/cradle/node_modules/request/main.js:119:22)
at Request. (native)
at Request.emit (events.js:70:17)
at Request. (/node_modules/cradle/node_modules/request/main.js:521:16)
at Request.emit (events.js:67:17)
at IncomingMessage. (/node_modules/cradle/node_modules/request/main.js:483:14)
at IncomingMessage.emit (events.js:88:20)
The text was updated successfully, but these errors were encountered: