yafyz / nitrsnip

A discord nitro sniper, which tries to actually be good (50-30ms on AWS, basicaly the fastest one). With normal discord push notification working (unlike others)
42 stars 32 forks source link

Doesn't work after the update #19

Closed realdep closed 1 year ago

realdep commented 1 year ago

I've tried it both on AWS and local. I've updated to the latest commit while keeping my config and now it simply doesn't work.

After the output it doesnt receive anyting, doesnt update the webhook, doesnt do anything. The program is unresponsive.

sometimes its stuck here: image

sometimes here: image

But nothing follows after it.

I tried changing my token, enabling/disabling improve_latency, other config settings and etc. but nothing worked. I've been using this for a year now and this is the first time this happened.

yafyz commented 1 year ago

i am aware, it's an old issue that sometimes shows up when either discord or cloudflare change something the problem is that the http header parser gets stuck in an infinite loop when headers are split over multiple packets it happened once already but only when sending stuff over webhooks so i just did a lazy patch to just use node https for that (https://github.com/yafyz/nitrsnip/commit/fb691be7db2a14289c2288cbdb97e69a56df83d5)

i dont think i actually use response headers anywhere so i guess imma just skip them cause i am too lazy to fix it properly

yafyz commented 1 year ago

seems fixed fix doesn't actually remove header parsing, but it's still a hella lazy fix tho