Skip to content

Error expected a binary but got: nil #266

Closed
@LuchoTurtle

Description

@LuchoTurtle

When setting up the database, if I run mix ecto.setup without ADMIN_EMAIL env set, it will obviously fail.

However, after setting the env variable, if I run mix ecto.setup again, I will run into this error.

** (ArgumentError) construction of binary failed: segment 2 of type 'binary': expected a binary but got: nil

To fix this, we ought to delete the database created and run mix ecto.setup again, as the initial run without the env variable configured will cause this error in subsequent tries.

I suggest adding a piece of documentation to clarify this.

Metadata

Metadata

Assignees

Labels

bugSuspected or confirmed bug (defect) in the codechorea tedious but necessary task often paying technical debtdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions