kient icon indicating copy to clipboard operation
kient copied to clipboard

Failed to retrieve pre-login tokens

Open 0xHal opened this issue 1 year ago • 9 comments

Has kick updated their API? I'm not able to connect no more, didn't changed anything in the code. image

Error is triggered in the getTokenks() function, but don't know why. image

0xHal avatar Feb 28 '24 21:02 0xHal

You probably need the x-kick-auth

c0uldfusi0n avatar Feb 29 '24 20:02 c0uldfusi0n

You probably need the x-kick-auth

If by x-kick-auth you mean TOTP Token then it's okay: image

By the way, it doesn't return anything as it say in the docs.

0xHal avatar Feb 29 '24 21:02 0xHal

I will look into this over the weekend. Have been away on holiday this past week without access to a computer.

zSoulweaver avatar Feb 29 '24 22:02 zSoulweaver

refering to this something like: this

const login = await client.api.authentication.login({ email: process.env.EMAIL, password: process.env.PASSWORD, otc: OTP }, process.env.KICK_AUTH);

c0uldfusi0n avatar Feb 29 '24 22:02 c0uldfusi0n

You probably need the x-kick-auth

I believe this is only provided to some lucky folk who have been whitelisted against the API to bypass CloudFlare. Us plebs have to work around it unfortunately.

zSoulweaver avatar Feb 29 '24 22:02 zSoulweaver

You probably need the x-kick-auth

I believe this is only provided to some lucky folk who have been whitelisted against the API to bypass CloudFlare. Us plebs have to work around it unfortunately.

true but even with it u get rate limited by kick =)

c0uldfusi0n avatar Feb 29 '24 22:02 c0uldfusi0n

I'm struggling to reproduce this on my local machine, @0xHal.

The "Just a moment..." title tag in the body that is being returned in the error would indicate that you are hitting the Cloudflare block. Could be a number of different things, but I don't believe it is an error on Kient's side.

zSoulweaver avatar Mar 01 '24 10:03 zSoulweaver

I'm struggling to reproduce this on my local machine, @0xHal.

The "Just a moment..." title tag in the body that is being returned in the error would indicate that you are hitting the Cloudflare block. Could be a number of different things, but I don't believe it is an error on Kient's side.

Yes exactly! Thanks for all your work man! If you have any donation link i will be happy to send you some money (i'm not rich ^^)

0xHal avatar Mar 01 '24 15:03 0xHal

stopped my script and started it back up again and getting this error:

Screen Shot 2024-04-02 at 1 24 22 PM

Seems to be the same error as above, any ideas?

--- It's so weird, it's working like normal again..

b3ck avatar Apr 02 '24 18:04 b3ck

Unfortunately, nothing much further can really be done do avoid Cloudflare at the present point. Kient will be rewritten for the public API when available.

Proxy support #25 has just been merged in which should help somewhat.

zSoulweaver avatar Oct 21 '24 11:10 zSoulweaver