xdouglas90

xdouglas90

I can’t use excoveralls 0.10, I’m getting the following error: (remembering that everything goes well with the project)

18:54:13.405 [error] GenServer #PID<0.278.0> terminating
** (RuntimeError) connect raised ArgumentError exception. The exception details are hidden, as they may contain sensitive data such as database credentials. You may set :show_sensitive_data_on_connection_error to true when starting your connection if you wish to see all of the details
    (postgrex 0.15.8) lib/postgrex/protocol.ex:129: Postgrex.Protocol.host_and_port/1
    (postgrex 0.15.8) lib/postgrex/protocol.ex:65: Postgrex.Protocol.connect/1
    (db_connection 2.3.1) lib/db_connection/connection.ex:82: DBConnection.Connection.connect/2
    (connection 1.1.0) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol
** (Mix) The database for Bank.Repo couldn't be created: killed

grateful

Showing Posts 1 to 7

dimitarvp

dimitarvp

How did you include it in your mix.exs? Here’s mine in a project where it works just fine:

      {:excoveralls, "~> 0.14", only: [:dev, :test], runtime: false},
xdouglas90

xdouglas90 OP

{:excoveralls, "~> 0.10", only: :test, runtime: false}

xdouglas90

xdouglas90 OP

now I put the same version as yours and still nothing.

dimitarvp

dimitarvp

I didn’t mean the version but the runtime: false thing.

al2o3cr

al2o3cr

This is the underlying exception:

https://github.com/elixir-ecto/postgrex/blob/faefd85cb4a1d7d9ba241d53f1e4f1929ce3dc0a/lib/postgrex/protocol.ex#L128-L130

This sounds like Bank.Repo is not correctly configured, not anything related to Excoveralls…

xdouglas90

xdouglas90 OP

defmodule Bank.Repo do
  use Ecto.Repo,
    otp_app: :bank,
    adapter: Ecto.Adapters.Postgres
end

xdouglas90

xdouglas90 OP

I managed to solve it. It seems to have been the problem in my

.env file

as I removed it and put its information directly in the

dev.exs and test.exs files

and everything worked normally. Thank you all for the support.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews