Comments (6)
Hi! That is because port is integer, not a string...(3306 is default)
The postgrex adaptor crashed with same error too.
But may be, there type checking for options needed? Or what would be best solution for this crash for you?
from mariaex.
Sorry, because of worst internet connection, the message was sent many times.
from mariaex.
I fixed that but I still consistently get
Mariaex.Connection.start_link(%{user: "root", port: 3306})
** (exit) exited in: GenServer.call(#PID<0.79.0>, {:connect, %{hostname: "localhost", password: nil, port: 3306, user: "root"}}, 5000)
** (EXIT) time out
(elixir) lib/gen_server.ex:356: GenServer.call/3
(mariaex) lib/mariaex/mariaex.ex:62: Mariaex.Connection.start_link/1
from mariaex.
and this
iex(1)> Mariaex.Connection.start_link(%{user: "root"})
** (EXIT from #PID<0.126.0>) an exception was raised:
** (ArgumentError) argument error
:erlang.byte_size(nil)
(mariaex) lib/mariaex/messages.ex:89: Mariaex.Messages.encode_handshake_resp/1
(mariaex) lib/mariaex/messages.ex:160: Mariaex.Messages.encode/2
(mariaex) lib/mariaex/protocol.ex:109: Mariaex.Protocol.msg_send/3
(mariaex) lib/mariaex/protocol.ex:38: Mariaex.Protocol.dispatch/2
(mariaex) lib/mariaex/mariaex.ex:390: Mariaex.Connection.process/2
(mariaex) lib/mariaex/mariaex.ex:317: Mariaex.Connection.handle_info/2
(stdlib) gen_server.erl:593: :gen_server.try_dispatch/4
from mariaex.
this works
iex(2)> Mariaex.Connection.start_link(%{user: "root", database: "ecto_test"})
{:ok, #PID<0.115.0>}
from mariaex.
Ok, close for now. If you want to have better errors for some cases, please let me know.
from mariaex.
Related Issues (20)
- ping_handle does not handle errors HOT 1
- Deploy 0.9.0 into hex.pm HOT 2
- mariaex error HOT 8
- leaks connections HOT 9
- Inserting large polygons HOT 1
- FunctionClauseError when connecting to a mysql db on azure
- Geometry is master branch but not released to Hex.pm HOT 1
- error when using cache_size = 1
- connections not closed properly? HOT 1
- Can't create more than max_prepared_stmt_count statements (current value: 16382) HOT 2
- Deprecation messages with Erlang/OTP 20 - Elixir 1.5.3
- Finish migration to DBConnection 2.0
- handle_handshake exceptions out on odd username circumstances
- version 0.8.5 not released HOT 4
- ssl recv timeout on mysql/percona 5.7 connection with TLS enabled HOT 3
- Connections not properly closed on errors HOT 8
- Invalid utf-8 byte sequences in varchar HOT 4
- Issue with inserting points HOT 1
- FunctionClauseError in Messages.decode_msg/2
- Time data type support for full range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mariaex.