Skip to content

Getting started instructions appear out of date, results in compilation error. #97

Description

@powder
== Compilation error in file lib/simple/router.ex ==
** (ArgumentError) JSON parser expects a :json_decoder option
    lib/plug/parsers/json.ex:38: Plug.Parsers.JSON.validate_decoder!/1
    lib/plug/parsers/json.ex:32: Plug.Parsers.JSON.init/1
    lib/plug/parsers.ex:245: anonymous fn/3 in Plug.Parsers.convert_parsers/2
    (elixir) lib/enum.ex:1925: Enum."-reduce/3-lists^foldl/2-0-"/3
    lib/plug/parsers.ex:228: Plug.Parsers.convert_parsers/2
    lib/plug/parsers.ex:224: Plug.Parsers.init/1
    lib/plug/builder.ex:302: Plug.Builder.init_module_plug/4
    lib/plug/builder.ex:286: anonymous fn/5 in Plug.Builder.compile/3

Likely this indicates that the simple repo hasn't been touched in a long while. Haven't dived into it further than following the instructions as listed and seeing it fail.

The following is my elixir/erlang version string if that's useful in understanding where this error is coming from.

[powder:simple-example] elixir --version                                                                                                                                                                                                          
Erlang/OTP 21 [erts-10.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Elixir 1.7.4 (compiled with Erlang/OTP 21)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions