JamDB Oracle - How to fix :badmatch error when fetch big file?
11/08/2023
@ Saigon
Elixir
Example error:
Solution: Add connection parameter named :read_timeout
in repo config. In the follow example, I change :read_timeout
to 5 minutes, see line 11.
Besides, I add :timeout
to :infinity
, see line 10.
1
2
3
4
5
6
7
8
9
10
11
config :app, App.OracleRepo,
hostname: "******",
port: 1521,
database: "******",
username: "******",
password: "******",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10,
timeout: :infinity,
parameters: [ read_timeout: :timer.minutes(5)]