@kiteuser_rs bingo, this was the exact problem! After Nivas pointed out that the 400 is from the ALB, I put this project aside for a while. It hit me around 10 days later, that there must be some really silly issue with the path. Hopefully this can …
Thanks for the reply, @Nivas
I logged the headers being sent by the Rust client, they seem to match the ones being sent by Postman (which is able to successfully connect). Do you know of any other possible causes?
Rust client headers -
$ cargo r …
update: I've created this simple repo, which just attempts to create a connection to Kite's WebSocket endpoint - https://github.com/ayush-sb/ws_test
Rust code output -
$ cargo r -- --api-key --access-token
Finished `dev` profile [unoptimized …