[error] #PID<0.515.0> running DishOutWeb.Endpoint (connection #PID<0.514.0>, stream id 1) terminated
Server: localhost:4000 (http)
Request: POST /delish_foods
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 22001 (string_data_right_truncation) value too long for type character varying(255)
I think Ecto doesn’t allow to input anything over 255
This is wrong, :string type in schema has no length limit. The type should be :text in migration and :string in schema.
I think this is the issue. You have originally created the DB with a character varying type with 255 limit and have not rolled back that migration, so the DB type has not been changed.