Postgres Error `(Postgrex.Error) ERROR 57014 (query_canceled) canceling statement due to user request`

It can also be caused by timeout of executing the query. See this link:

Cause

This error is returned by your PostgreSQL client himself which stops the query execution, that means the query took too much time and its timeout has been reached.

The problem could be solved by changing your datasource configuration.