我試圖設置我的elixir-phoenix應用程序與postgresql數據庫與Docker運行。這是我的Dockerfile樣子: # ./Dockerfile
# Starting from the official Elixir 1.5.2 image:
# https://hub.docker.com/_/elixir/
FROM elixir:1.5.2
ENV DEBIAN
我使用HTTPoison和Poison來解碼對視圖的json響應。我成功地解碼了響應主體,但我很努力地將其應用到視圖中。我得到這個錯誤:cannot encode maps inside lists when the map has 0 or more than 1 elements 這裏是我做的控制器: url = "https://api.sportradar.us/nba/trial/v4/