About Plug.Parsers order

Hi,

I have been banging my head about Plug.Parsers for a couple of hours, as it was not parsing the request body.

I solved the problem by moving it before the :match // :dispatch plugs, and everything went fine.

I wonder:

  • was this predictable? In general should plugs be inserted before :dispatch?
  • should it no be stated in the docs?

Thanks,

It was predictable yep. :slight_smile:

Plugs are run in order, as earlier ones may supply information needed by later ones, such as in your example, the parser output is used by plugs that are inside the dispatch. :slight_smile: