Closed avihavai closed 3 years ago
Hi @avihavai 👋
Thanks for raising this - I suspect, as you allude to, this is due to Oak now switching to native HTTP bindings under the hood when —unstable
is provided for one of the recent ^1.9.0
Deno versions.
I’ve got a feeling a simple feature detection + adjustment to call signature should do it, but needs some more investigation. Until then will say that we support the “old” Oak server but not the new unstable version just yet ( though your reasons for using unstable may well be for other libs in your server which this doesn’t then help with 😅 ).
If you’re up for investigating then really appreciate contributions, otherwise may start looking at it today / tomorrow, workload permitting!
Hmm, just given a quick spike and my issue atm seems to be that the abort controller doesn't seem to closing the server as expected - will continue to investigate!
Hi and thanks! :). Out of curiosity, I took a quick peek at SuperDeno + Opine, and the --unstable
+hang -issue does not appear there. Unfortunately, I'm quite packed at work at the moment and can't promise to look into this in the near future. Regarding the versions, I'm forced to use --unstable
due to other libraries at the moment -- but, can jump back to an older Oak-version for now. Thanks for the effort with the library!
I think I've found a bug in Oak - the closeServer
example doesn't work as intended when using the native bindings, raising an issue there and might take a look at fixing that 🤞
Nice! Looking forward to a fix! Great work!
Issue on Oak was closed by https://github.com/oakserver/oak/commit/a7e053cad739b6778683353b137c4379849df1e0. Awaiting a new version to be released so we can test to confirm everything is working.
oak@7.4.0
has been released but appears to have a similar ( well subtly different ) error which prevents us from using superoak as desired.
Suspecting https://github.com/denoland/deno/issues/10508 may be related to some of the issues find when try to work around Oak’s current state
Looks like https://github.com/denoland/deno/issues/10508#issuecomment-854251753 has been fixed and closed!
Raised https://github.com/oakserver/oak/pull/389 which think should resolve this issue.
Merged 🎉 expect to be fixed next Oak release 🙃
Fixed in latest version upstream https://deno.land/x/oak@v9.0.1
Issue
Hi! When running Deno superoak tests with
--unstable
flag in recent Deno / Oak -versions, the tests get stuck.Setup:
Details
Example code:
When running the tests with
deno test --allow-net --unstable app.js
, the tests get stuck. However, withdeno test --allow-net app.js
, the tests can be successfully run. This might have something to do with the native HTTP server enabled in oak when using the--unstable
-flag, but have not looked into this in detail. Oak can be normally used with the--unstable
flag though.