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

filter.watch() does not handle sticky sessions #1665

Closed
ianthpun opened this issue May 28, 2018 · 3 comments
Closed

filter.watch() does not handle sticky sessions #1665

ianthpun opened this issue May 28, 2018 · 3 comments

Comments

@ianthpun
Copy link

Currently, filter.watch() doesn't seem to support sticky sessions. The initial call to web3.eth.filter('latest') does not hold the cookies set from the response

@ianthpun
Copy link
Author

I noticed that HTTPProvider uses XMLHttpRequest(), which has the option to set withCredentials = true, allowing for set-cookie to work for cookie-based sticky sessions. Is there a reason why this was not set to true or why there is no option to?

@edevil
Copy link

edevil commented Jun 20, 2018

I also have this problem. I access a parity node farm behind a load-balancer that sets sticky sessions based on cookies. Some of the flows like creating and using filters require that we reach the same node. If the correct cookie value is not sent when we want to fetch events from the filter we just created this will not work.

@ianthpun did you manage to get this to work?

@frozeman
Copy link
Contributor

I merged and fixed the tests, can you test develop?

krisajenkins added a commit to input-output-hk/ethereum-explorer that referenced this issue Aug 6, 2018
Web3 v0.19.x didn't handle cookies correctly, which mean AWS couldn't
implement load balancing with sticky sessions:

  web3/web3.js#1665

This updates us to 0.20.x.
krisajenkins added a commit to input-output-hk/ethereum-explorer that referenced this issue Aug 6, 2018
Web3 v0.19.x didn't handle cookies correctly, which mean AWS couldn't
implement load balancing with sticky sessions:

  web3/web3.js#1665

This updates us to 0.20.x.
krisajenkins added a commit to input-output-hk/ethereum-explorer that referenced this issue Aug 6, 2018
Web3 v0.19.x didn't handle cookies correctly, which mean AWS couldn't
implement load balancing with sticky sessions:

  web3/web3.js#1665

This updates us to the current development tip.
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

3 participants