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

[HttpClient] Add support for load balancing cookies #1484

Open
victhorbi opened this issue Nov 7, 2024 · 1 comment
Open

[HttpClient] Add support for load balancing cookies #1484

victhorbi opened this issue Nov 7, 2024 · 1 comment

Comments

@victhorbi
Copy link
Collaborator

victhorbi commented Nov 7, 2024

Context
Some clients might want to use load balancing cookies:

https://vechain.atlassian.net/wiki/spaces/NodeOps/pages/246251522/Node+Usage#Load-Balancing

Idea is to see how we could support that in the SDK
Using this cookie on our own nodes avoids the "Level db not found" error when a client is switching between nodes and get switched to a node not quite in sync.

Axios does automatically add the headers that are in a response in the following request, but we now use Fetch.

Description
Add the possibility to include the header cookies automatically with every request.

Acceptance
The User must select either to use the cookies automatically, or not.

@victhorbi
Copy link
Collaborator Author

Related to #1124

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

When branches are created from issues, their pull requests are automatically linked.

3 participants