gleam-wisp / wisp

🧚 A practical web framework for Gleam
https://gleam-wisp.github.io/wisp/
Apache License 2.0
910 stars 41 forks source link

Internal Server Error #95

Closed rulanugrh closed 3 months ago

rulanugrh commented 3 months ago

I have followed example-routing, but I get an error that results like this

image

For the dependencies that I use, I have followed them exactly as in the example. image

Can anyone help me? I think I have followed the steps given. 🤔

lpil commented 3 months ago

You're getting an Erlang error from calling an undefined function, which shouldn't be possible in Gleam.

Is your code available somewhere for me to look at?

rulanugrh commented 3 months ago

@lpil my code is like this, yeah actually I followed the example you gave here

image image image

lpil commented 3 months ago

What version of Erlang are you using? I think you may be using OTP25, which the Gleam standard library does not support.

rulanugrh commented 3 months ago

@lpil my erlang version like this image

lpil commented 3 months ago

Ah yes, it's OTP25. Please upgrade to OTP26 or newer, thank you.

rulanugrh commented 3 months ago

@lpil okayyy, Thank you for the help

lpil commented 3 months ago

No problem!