Skip to content
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

Unhandled rejection TypeError: Cannot create property 'value' on string '1' #313

Closed
ghost opened this issue Nov 19, 2016 · 5 comments
Closed

Comments

@ghost
Copy link

ghost commented Nov 19, 2016

I get this error when selecting data from a table. It works but the error keeps printing in my console.

Unhandled rejection TypeError: Cannot create property 'value' on string '1'
at Object.getCanonicalAddress (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/lib/helper.js:146:22)
at PoolMaster.handleAllServersResponse (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/lib/pool_master.js:183:27)
at /Users/pixel/Desktop/test/node_modules/rethinkdbdash/lib/pool_master.js:324:16
at resolve (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/lib/cursor.js:238:21)
at tryCatcher (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/async.js:148:10)
at Immediate.Async.drainQueues (/Users/pixel/Desktop/test/node_modules/rethinkdbdash/node_modules/bluebird/js/release/async.js:17:14)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)

@neumino
Copy link
Owner

neumino commented Nov 20, 2016

What do these two queries return:

r.db('rethinkdb').table('server_config')
r.db('rethinkdb').table('server_status')

@ghost
Copy link
Author

ghost commented Nov 20, 2016

This error only occurs when I initiate RethinkDBDash with discovery mode enabled.

r.db('rethinkdb').table('server_config')
[ { cache_size_mb: 'auto',
id: '9e5da1c4-28ee-412e-b722-26677c299678',
name: 'local',
tags: [ 'default' ] } ]

r.db('rethinkdb').table('server_status')
[ { id: '9e5da1c4-28ee-412e-b722-26677c299678',
name: 'local',
network:
{ canonical_addresses: [Object],
cluster_port: 29015,
connected_to: {},
hostname: 'osxlocal.local',
http_admin_port: 8080,
reql_port: 28015,
time_connected: 2016-11-19T08:43:47.963Z },
process:
{ argv: [Object],
cache_size_mb: 2666.87890625,
pid: 852,
time_started: 2016-11-19T08:43:47.961Z,
version: 'rethinkdb 2.3.5 (CLANG 7.3.0 (clang-703.0.31))' } } ]

@neumino
Copy link
Owner

neumino commented Nov 20, 2016

Can you paste the full nested object?

@ghost
Copy link
Author

ghost commented Nov 21, 2016

Sure

{
"id": "9e5da1c4-28ee-412e-b722-26677c299678" ,
"name": "local" ,
"network": {
"canonical_addresses": [
{
"host": "127.0.0.1" ,
"port": 29015
} ,
{
"host": "::1" ,
"port": 29015
}
] ,
"cluster_port": 29015 ,
"connected_to": { } ,
"hostname": "osxlocal.local" ,
"http_admin_port": 8080 ,
"reql_port": 28015 ,
"time_connected": Mon Nov 21 2016 19:01:10 GMT+00:00
} ,
"process": {
"argv": [
"rethinkdb"
] ,
"cache_size_mb": 1571.947265625 ,
"pid": 13695 ,
"time_started": Mon Nov 21 2016 19:01:10 GMT+00:00 ,
"version": "rethinkdb 2.3.5 (CLANG 7.3.0 (clang-703.0.31))"
}
}

@neumino
Copy link
Owner

neumino commented Nov 22, 2016

Should be fixed in 2.3.27

thejsj added a commit to thejsj/rethinkdbdash that referenced this issue Dec 17, 2016
* 'master' of github.com:neumino/rethinkdbdash: (304 commits)
  Fix leaked variable from test
  Bump to 2.3.27
  Fix neumino#313
  Bump to 2.3.26
  fix: return null where new Promises are created but not returned
  Fix leak in tests
  Fix leak in tests
  Bump to 2.3.25
  Make identification errors operational such that they can be properly caught - Fix neumino#295
  Bump to 2.3.24
  Close the stream if an error is emitted since we can't recover frm it
  Remove the use of Buffer with new for node 7 - Fix neumino#304
  Wrap sending the proof in a try/catch in case the connection is closed - Fix neumino#296
  Bump to 2.3.23
  Prevent bluebird warning - Fix neumino#287
  Bump to 2.3.22
  Prevent bluebird warning - Fix neumino#285
  function r: remove unused parameter `options`
  readme: minor typo fix
  Bump to 2.3.21
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant