Internal error calling an app http endpoint from the browser

This app has a server module that defines an http endpoint and a form with a button that calls that http endpoint.

The endpoint works well with curl, but it doesn’t work when called from the form.

If there are good reasons for this not to work, please show some meaningful message.

https://anvil.works/build#clone:VKL2IYHRZ6L3UTXA=E7ENFVHZJOK73K4KHMJXJDYK

image

That’s definitely a bug – moving to Bug Reports! Are you able to provide something we can clone that can replicate this issue?

The clone link on my original post allows to reproduce the problem.