fermyon / feedback

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

Variables in http trigger routes seem broken #55

Open NiklasEi opened 2 months ago

NiklasEi commented 2 months ago

Describe the bug The following trigger works as expected locally, but results in 404 in Fermyon cloud with most values for :id

[[trigger.http]]
route = "/test/:id"
component = "variable-trigger"

Variable syntax according to https://developer.fermyon.com/spin/v2/manifest-reference#additional-fields-for-triggerhttp-tables-

Frequency of the bug Please check one:

Set-up information spin 2.5.1 (cba6773 2024-05-14)

To Reproduce Steps to reproduce the behavior:

  1. Check out this repo: https://github.com/NiklasEi/spin_variable_trigger (slightly changes rust starter template)
  2. Start locally
  3. Open http://127.0.0.1:3000/test/test and check the logs
  4. Now deploy and try that again, or test the deployed version of the app above: https://variable-trigger-3zhg6far.fermyon.app/test/test

Notice that the route https://variable-trigger-3zhg6far.fermyon.app/test/:id actually reaches the component.

Expected behavior I should reach the app with any value for the variable id.

tpmccallum commented 2 months ago

Thanks @NiklasEi I get the same issue. The Cloud-based deployment does not resolve in the same way that the local deployment does.

Cloud:

image

Local:

image

image

itowlson commented 2 months ago

Oops, sorry @tpmccallum, I updated in Discord but not here! Cloud has not yet caught up with this Spin feature but there is an update in progress.