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

Transaction expiration time depends on server timestamp #199

Open
cah-kenankujovic opened this issue May 10, 2016 · 1 comment
Open

Transaction expiration time depends on server timestamp #199

cah-kenankujovic opened this issue May 10, 2016 · 1 comment
Labels
Milestone

Comments

@cah-kenankujovic
Copy link

Hi,
I ran into an issue where every transaction would fail with this message:

This transaction has expired. You can get the expiration time of a transaction through its expiresAt (Date) and expiresIn (ms) properties.

The issue turns out to be that Neo4J runs in Docker container, and this container had wrong time (about 3 minutes in past). This is somewhat known issue with Docker, and it very easy to fix it.

However, my question is this:
What is the value of calculating the expiration time on the client? It seems to me this should handled by the server.

@aseemk aseemk added this to the v2 redesign milestone May 10, 2016
@aseemk aseemk added the bug label May 10, 2016
@aseemk
Copy link
Member

aseemk commented May 10, 2016

Great point! You're right.

My intent was for node-neo4j on the server to just provide more helpful error messages than Neo4j itself often provides, but you highlight that this case can do more harm than good.

I'll look to fix! Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants