fermyon / feedback

Centralized repository for Fermyon Cloud feedback and bug reports
3 stars 1 forks source link

TeaVM-based Java apps failing with "Handler Timeout" error #4

Closed dicej closed 1 year ago

dicej commented 1 year ago

Describe the bug Any TeaVM-based app currently fails immediately with a "Handler Timeout" error when run on Cloud.

Frequency of the bug Consistent repro

Set-up information Please share the version of Spin used when the bug occurred. You can find the version of Spin by running spin -V. spin 0.6.0 (6b0af21 2022-11-28) (but the exact Spin version does not seem to matter)

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/dicej/spin-teavm-example
  2. Follow the instructions to build it
  3. Deploy it to Cloud using spin deploy
  4. Hit the app URL using curl or a browser
  5. Observe the app returns a 504 status with the text "Handler Timeout"

Expected behavior The app should return an 200 status.

dicej commented 1 year ago

FYI, we have a fix for this and plan to deploy it today.

dicej commented 1 year ago

The fix has been deployed!

dicej commented 1 year ago

BTW, it turns out this was masking another issue with TeaVM-WASI, so make sure you're using v0.2.7 or later to the get the fix for that.