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

Coherence - Rememberable and Resumable.js not working the second time #418

Open
agacode opened this issue Feb 17, 2020 · 0 comments
Open

Comments

@agacode
Copy link

agacode commented Feb 17, 2020

When I use Coherence - Rememberable with Resumable.js only works the first time.
If I stop the Phoenix Server start it again and try the Resumable.js again, it removes the rememberable record from the DB and returns 401 for all following calls.
This is the stack trace before it fails:

[debug] QUERY OK source="rememberables" db=0.9ms queue=0.1ms
DELETE FROM "rememberables" AS r0 WHERE (r0."token_created_at" < $1) [~N[1917-06-17 14:34:55]]
[debug] QUERY OK source="rememberables" db=2.2ms
SELECT count(r0."id") FROM "rememberables" AS r0 WHERE (((r0."user_id" = $1) AND (r0."series_hash" = $2)) AND (r0."token_hash" != $3)) [3, "RvmuTEdhUOSqo4os26P_k9YVp_U=", "NRBkBO0-4Xd4tfEnD0NPRrcATGM="]
[debug] QUERY OK source="rememberables" db=1.3ms queue=0.3ms
DELETE FROM "rememberables" AS r0 WHERE (r0."user_id" = $1) [3]
[warn] Invalid token. Potential Fraud.
[info] Sent 302 in 61ms
[debug] QUERY OK source="rememberables" db=1.6ms queue=1.7ms
DELETE FROM "rememberables" AS r0 WHERE (r0."token_created_at" < $1) [~N[1917-06-17 14:34:56]]
[debug] QUERY OK source="rememberables" db=9.0ms queue=0.2ms
SELECT count(r0."id") FROM "rememberables" AS r0 WHERE (((r0."user_id" = $1) AND (r0."series_hash" = $2)) AND (r0."token_hash" != $3)) [3, "RvmuTEdhUOSqo4os26P_k9YVp_U=", "NRBkBO0-4Xd4tfEnD0NPRrcATGM="]
[debug] QUERY OK source="rememberables" db=2.1ms queue=0.1ms
SELECT r0."id", r0."series_hash", r0."token_hash", r0."token_created_at", r0."user_id", r0."inserted_at", r0."updated_at" FROM "rememberables" AS r0 WHERE (((r0."user_id" = $1) AND (r0."series_hash" = $2)) AND (r0."token_hash" = $3)) [3, "RvmuTEdhUOSqo4os26P_k9YVp_U=", "NRBkBO0-4Xd4tfEnD0NPRrcATGM="]
[debug] No valid login found
[info] Sent 401 in 81ms
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