Open duytruong opened 7 years ago
Hi @duytruong , thanks for checking the project out!
I had some work on a separate branch that I've just merged in to master, can you pull the latest changes down and let me know if you're still having the problem.
Also I'm not sure how you ran across the project, but if it wasn't by way of the blog post tutorials I wrote around it you might want to give those a look for troubleshooting
Hi @wstrinz, I've pulled the latest code but I'm still having the problem.
I actually followed your tutorials first, when I got the problem, I found this repo and tried to run your code but I got the same error.
After some googling, I change plug Plug.Parsers
in lib/weatherbot/router.ex
as follows:
plug Plug.Parsers, parsers: [:json, :urlencoded], json_decoder: Poison
and it's working now, I don't know why I have to add json_decoder: Poison
, but you don't.
My environment: Elixir 1.4.1, Erlang/OTP 19 [erts-8.3] and Ubuntu 16.04 LTS 64 bit
Hi @wstrinz I got a problem when called the
/webhook
endpoint, here is the stack traceI think I miss an option for json decode but I don't know exactly what it is and how to configure. I'm just a starter in Elixir.