在运行我的Phoenix应用程序时,我突然发现记录了一个错误:
The client's requested channel transport version "2.0.0" does not match server's version requirements of "~> 1.0"
使用mix phoenix.server
:
[info] Running MyApp.Endpoint with Cowboy using http://localhost:4000
21 Nov 13:47:19 - info: compiled 4 files into app.js, copied robots.txt in 2.3 sec
[error] The client's requested channel transport version "2.0.0" does not match server's version requirements of "~> 1.0"
然后每隔10秒左右继续记录错误消息,无论我是否向服务器发出任何请求。尽管如此,该应用似乎运行良好,但解决这个问题会很棒。
任何人都可以解释为什么这会突然开始发生,以及我可以做些什么来解决它?
以下是mix.exs
的一些配置信息:
def application do
[mod: {MyApp, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :comeonin]]
end
defp deps do
[{:phoenix, "~> 1.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:cors_plug, "~> 1.1"},
{:comeonin, "~> 3.0"},
{:guardian, "~> 0.14"},
{:guardian_db, "~> 0.8.0"}]
end