Closed dalisoft closed 1 month ago
@e3dio For me it does not work. Can you attach an example video please like below? Thank you
https://github.com/user-attachments/assets/fb5af302-605e-4fe3-a1cd-e0628d18c32d
Looks like you have not done enough troubleshooting yet, you are running multiple servers in same test and not showing the full code that is running, you have done no basic elimination of possible issues by removing code until something works, add more logging, everything works fine for me
Which OS are you running @e3dio?
Linux - Node v22.6.0 - uWS.js v20.47.0
Seems problem on my macOS, it works on Linux on my machine too
I ran this on M1, works. But are you sure it'a not just curl timing out and closing? Your video shows that it works, it does report correctly but probably curl that closes.
Doesn't help that @dalisoft does not show all code of test, doing something like import { setTimeout } from 'node:timers/promises'
at the top would give the results shown in video. Minimizing the test to something that works would pinpoint the exact issue, but basic troubleshooting steps were not followed, he just gave up instead
@e3dio The code provided here also not worked so problem not about troubleshooting, it’s about OS.
on Linux that code worked (even code like video).
Now testing code on Linux and it works, i am closed issue after see it works on Linux
@uNetworkingAB i got it working on Linux, Ubuntu 20.04. Seems something wrong with my Mac, so i will troubleshoot why it does not work on my Mac next days. Thank you for note about curl, i keep in mind in future
You can use DTrace
I will use dtrace
to debug. My problem was either with VSCode or macOS itself, anyway, after re-installing (from scratch) everything works fine now
Issue
Request hanging without response but it should work as expected
Code
Test