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

quiknode 400 error #200

Open
nftdance opened this issue Sep 7, 2024 · 0 comments
Open

quiknode 400 error #200

nftdance opened this issue Sep 7, 2024 · 0 comments

Comments

@nftdance
Copy link

nftdance commented Sep 7, 2024

use quiknode rpc (use paid node)
drift_client = DriftClient(
connection,
wallet,
"mainnet",
account_subscription=AccountSubscriptionConfig("websocket"),
tx_params=TxParams(300_000, 100_000),
active_sub_account_id=sub_account_id,
)
await drift_client.subscribe()
http status is 400, trace the source find that
https://github.com/drift-labs/driftpy/blob/master/src/driftpy/constants/config.py#L137
if change head to headers={"Content-Type": "application/json"}, it work ok.

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