10000 Connection Failure with new Phoenix Project · Issue #99 · xerions/mariaex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Connection Failure with new Phoenix Project #99
Closed
@paulgithub

Description

@paulgithub

The following error can be easily reproduced by creating a new Phoenix project:

$ mix phoenix.new tmp_app --database mysql

Then adding a new model with tests followed by migration, etc. and then running tests:

$ mix test test/models

The mix.exs uses the defaults produced by the mix phoenix.new command above. The only changes are to the config/test.exs file for the database connection, updated username, password, database.

The error can also be created on an existing Phoenix project by updating mariaex from 0.6.x to 0.7.0.

The issue in other words is with the new version 0.7.0.

Here 6329 is the error:

11:33:55.040 [error] GenServer TmpApp.Repo.Pool terminating
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
    (elixir) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir) lib/enum.ex:116: Enumerable.reduce/3
    (elixir) lib/enum.ex:1486: Enum.reduce/3
    (mariaex) lib/mariaex/query.ex:135: DBConnection.Query.Mariaex.Query.decode/3
    (db_connection) lib/db_connection.ex:423: DBConnection.query/4
    (mariaex) lib/mariaex.ex:138: Mariaex.query/4
    (ecto) lib/ecto/adapters/mysql/connection.ex:25: Ecto.Adapters.MySQL.Connection.query/4
    (stdlib) timer.erl:197: :timer.tc/3
** (exit) exited in: GenServer.call(TmpApp.Repo.Pool, {:query, :begin, &TmpApp.Repo.log/1, [timeout: 15000]}, 5000)
    ** (EXIT) an exception was raised:
        ** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
            (elixir) lib/enum.ex:1: Enumerable.impl_for!/1
            (elixir) lib/enum.ex:116: Enumerable.reduce/3
            (elixir) lib/enum.ex:1486: Enum.reduce/3
            (mariaex) lib/mariaex/query.ex:135: DBConnection.Query.Mariaex.Query.decode/3
            (db_connection) lib/db_connection.ex:423: DBConnection.query/4
            (mariaex) lib/mariaex.ex:138: Mariaex.query/4
            (ecto) lib/ecto/adapters/mysql/connection.ex:25: Ecto.Adapters.MySQL.Connection.query/4
            (stdlib) timer.erl:197: :timer.tc/3
    (elixir) lib/gen_server.ex:564: GenServer.call/3
    (ecto) lib/ecto/adapters/sql.ex:407: Ecto.Adapters.SQL.test_transaction/5
    (elixir) lib/code.ex:363: Code.require_file/2
    (elixir) lib/enum.ex:604: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:604: Enum.each/2

Metadata

Metadata

Assignees

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

    0