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

Feathers-sync breaks when trying to authenticate #62

Closed
Sieabah opened this issue Jul 22, 2017 · 1 comment
Closed

Feathers-sync breaks when trying to authenticate #62

Sieabah opened this issue Jul 22, 2017 · 1 comment

Comments

@Sieabah
Copy link

Sieabah commented Jul 22, 2017

Steps to reproduce

Run feathers-sync backed by redis.

`

synk_1       | /srv/synk/node_modules/feathers-authentication/lib/socket/update-entity.js:4

synk_1       |   var app = meta.app;

synk_1       |                 ^

synk_1       |

synk_1       | TypeError: Cannot read property 'app' of undefined

synk_1       |     at Object.updateEntity (/srv/synk/node_modules/feathers-authentication/lib/socket/update-entity.js:4:17)

synk_1       |     at emitOne (events.js:101:20)

synk_1       |     at Object.emit [as _emit] (events.js:188:7)

synk_1       |     at RedisClient.<anonymous> (/srv/synk/node_modules/feathers-sync/src/redis.js:28:27)

synk_1       |     at emitTwo (events.js:111:20)

synk_1       |     at RedisClient.emit (events.js:191:7)

synk_1       |     at return_pub_sub (/srv/synk/node_modules/redis/index.js:781:18)

synk_1       |     at RedisClient.return_reply (/srv/synk/node_modules/redis/index.js:828:9)

synk_1       |     at JavascriptRedisParser.returnReply (/srv/synk/node_modules/redis/index.js:192:18)

synk_1       |     at JavascriptRedisParser.execute (/srv/synk/node_modules/redis/node_modules/redis-parser/lib/parser.js:574:12)

synk_1       |     at Socket.<anonymous> (/srv/synk/node_modules/redis/index.js:274:27)

synk_1       |     at emitOne (events.js:96:13)

synk_1       |     at Socket.emit (events.js:188:7)

synk_1       |     at readableAddChunk (_stream_readable.js:176:18)

synk_1       |     at Socket.Readable.push (_stream_readable.js:134:10)

synk_1       |     at TCP.onread (net.js:547:20)

`

Expected behavior

Should sync between servers using a redis connector provided

Actual behavior

meta is undefined

System configuration

`
const sync = require('feathers-sync');

app.configure(sync({
    db: `redis://${host}:${port}`,
  }));

`

Module versions (especially the part that's not working):
feathers: ^2.1.4
feathers-sync: ^0.1.3

NodeJS version:
v6 or v8 (both fail)

@Sieabah
Copy link
Author

Sieabah commented Jul 22, 2017

Looks like it happens 100% of the time when you try to log in an already authenticated user.

I also found this related issue on feathers-authenticate

@Sieabah Sieabah closed this as completed Jul 22, 2017
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