Can't compile "cowboy" in a bare new phoenix project

Cowboy 2.8.0 was released yesterday on hex.pm and requires OTP22+.

Two possible solutions:

  • upgrade to OTP22
  • set Cowboy version in mix.exs (something like {:cowboy, "< 2.8.0", override: true} in the deps section but haven’t tested)
11 Likes