Open marcmunro opened 8 years ago
@stubailo is it the token clean-up code from the accounts fork?
Yep! Didn't implement this
Will you be implementing it? If not, can you tell me what needs to be done?
Basically we need to add a method to the Accounts DB driver to remove all expired tokens, and call that within a setInterval in the accounts server code in _expireTokens.
Is anyone going to be doing that any time soon, or do I need to hack on that myself? I don't mind, just don't want to duplicate effort.
I don't have any plan to do it at the moment - my main goal was to get a demo working ASAP, so I didn't put in that much effort into making the accounts package complete.
ok, thx. Do you mind if I keep this item open so that I can ask questions if need to? I'll try not to bother you much and it will probably be a few days before I get to that point.
Yeah no problem - there's a real bug, so there should be an open issue!
Was this fixed by #18? Or is it totally unrelated?
It could be - I am not currently using Postgres for anything, so hopefully someone else can tell us if it is fixed now!
I cannot tell if it fixes anything due to issue #32. If that gets resolved, I will take another look.
@marcmunro sorry that broke things for you! I'll take a look.
This happens from the publish-relation example. This is cloned from github (commit 9806ece996c31884db27448f21ed963faf237da7) with modifications only to the environment variable settings in run-app.sh to attach to a suitable database (
export POSTGRESQL_URL="postgres://localhost:5437/publish_relation"
).From the brower I have created an account and made a single post.
I then restart the app and leave it alone. Eventually, the error occurs.
Here is the log:
er.Ap._expireTokens (packages/accounts-base/accounts_server.js:1086:1) I20150923-13:23:33.285(-7)? at packages/accounts-base/accountsserver.js:1124:1 I20150923-13:23:33.285(-7)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) I20150923-13:23:33.285(-7)? at packages/meteor/timers.js:6:1 I20150923-13:23:33.286(-7)? at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)