api-v2/api.log

4976 lines
459 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[info] tzdata release in place is from a file last modified Thu, 16 Jan 2025 17:10:51 GMT. Release file on server was last modified Sat, 22 Mar 2025 21:45:31 GMT.
[debug] Tzdata downloading new data from https://data.iana.org/time-zones/tzdata-latest.tar.gz
[debug] Tzdata data downloaded. Release version 2025b.
[info] Tzdata has updated the release from 2025a to 2025b
[debug] Tzdata deleting ETS table for version 2025a
[debug] Tzdata deleting ETS table file for version 2025a
[info] GET /
[debug] Processing with ApiWeb.PageController.home/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 302 in 113ms
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[info] Sent 200 in 105ms
[info] GET /api/images/logo_santaclara.png
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/images/logo_santaclara.png (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] GET /api/images/fondo.png
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/images/fondo.png (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 42µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "QkcTIxkOVX44DCg7JT1zf2MwUB0hIRth6uqkst3SRBpcIz40NH6KecZ4", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 1ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"idstudy" => "446", "patientid" => "1111"}
[info] Ingreso con idstudy: 446 y patientid: 1111
[debug] QUERY OK source="study" db=16.5ms queue=6.6ms idle=272.7ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."idstudy" = $2)) ["1111", 446]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:29
[debug] QUERY OK source="study" db=31.1ms queue=3.8ms idle=305.8ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:34
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 96ms
[debug] QUERY OK db=6.1ms queue=0.7ms idle=374.3ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:29:08.327668Z"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] QUERY OK db=1.6ms queue=0.5ms idle=381.6ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:29:08.346039Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] GET /api/images/logo_santaclara.png
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/images/logo_santaclara.png (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[info] Sent 200 in 3ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 54µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "QkcTIxkOVX44DCg7JT1zf2MwUB0hIRth6uqkst3SRBpcIz40NH6KecZ4", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/phoenix/live_reload/frame
[info] GET /api/images/fondo.png
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/images/fondo.png (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 41µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "RQQUFxAVB0UjPAsSNSQYBnonVjEUcSgv16v_zoahIrSJYc_IW_0gP3iz", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 2ms
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] CONNECTED TO Phoenix.LiveView.Socket in 39µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "RQQUFxAVB0UjPAsSNSQYBnonVjEUcSgv16v_zoahIrSJYc_IW_0gP3iz", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 20ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"idstudy" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con idstudy: 1111.CR y patientid: 1111
[error] GenServer #PID<0.694.0> terminating
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a textual representation of an integer
:erlang.binary_to_integer("1111.CR")
(api 0.1.0) lib/api_web/live/index_live.ex:72: ApiWeb.IndexLive.buscar_estudio/2
(api 0.1.0) lib/api_web/live/index_live.ex:29: ApiWeb.IndexLive.handle_event/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:508: anonymous fn/3 in Phoenix.LiveView.Channel.view_handle_event/3
(telemetry 1.3.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:260: Phoenix.LiveView.Channel.handle_info/2
(stdlib 5.2.3.1) gen_server.erl:1095: :gen_server.try_handle_info/3
(stdlib 5.2.3.1) gen_server.erl:1183: :gen_server.handle_msg/6
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Last message: %Phoenix.Socket.Message{topic: "lv:phx-GDYvJx-nMFLz4wEh", event: "event", payload: %{"event" => "logged", "type" => "form", "value" => "patientid=1111&idstudy=1111.CR"}, ref: "9", join_ref: "8"}
State: %{socket: #Phoenix.LiveView.Socket<id: "phx-GDYvJx-nMFLz4wEh", endpoint: ApiWeb.Endpoint, view: ApiWeb.IndexLive, parent_pid: nil, root_pid: #PID<0.694.0>, router: ApiWeb.Router, assigns: %{list: true, form: %{}, __changed__: %{}, page_title: "Entrega Digital - ", flash: %{}, logo: "http://santaclara.informemedico.com.ar:8080/cgi-bin/impacs.bf/get_logo", live_action: nil, logged_in: false, login_result: nil, base_url: "https://santaclara.informemedico.com.ar/", idsite: "237", logo_sm: "/api/images/logo_santaclara.png"}, transport_pid: #PID<0.679.0>, ...>, components: {%{}, %{}, 1}, topic: "lv:phx-GDYvJx-nMFLz4wEh", serializer: Phoenix.Socket.V2.JSONSerializer, join_ref: "8", upload_names: %{}, upload_pids: %{}}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 2ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"idstudy" => "1111.CT", "patientid" => "1111"}
[info] Ingreso con idstudy: 1111.CT y patientid: 1111
[error] GenServer #PID<0.695.0> terminating
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a textual representation of an integer
:erlang.binary_to_integer("1111.CT")
(api 0.1.0) lib/api_web/live/index_live.ex:72: ApiWeb.IndexLive.buscar_estudio/2
(api 0.1.0) lib/api_web/live/index_live.ex:29: ApiWeb.IndexLive.handle_event/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:508: anonymous fn/3 in Phoenix.LiveView.Channel.view_handle_event/3
(telemetry 1.3.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:260: Phoenix.LiveView.Channel.handle_info/2
(stdlib 5.2.3.1) gen_server.erl:1095: :gen_server.try_handle_info/3
(stdlib 5.2.3.1) gen_server.erl:1183: :gen_server.handle_msg/6
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Last message: %Phoenix.Socket.Message{topic: "lv:phx-GDYvJx-nMFLz4wEh", event: "event", payload: %{"event" => "logged", "type" => "form", "value" => "patientid=1111&idstudy=1111.CT"}, ref: "11", join_ref: "10"}
State: %{socket: #Phoenix.LiveView.Socket<id: "phx-GDYvJx-nMFLz4wEh", endpoint: ApiWeb.Endpoint, view: ApiWeb.IndexLive, parent_pid: nil, root_pid: #PID<0.695.0>, router: ApiWeb.Router, assigns: %{list: true, form: %{}, __changed__: %{}, page_title: "Entrega Digital - ", flash: %{}, logo: "http://santaclara.informemedico.com.ar:8080/cgi-bin/impacs.bf/get_logo", live_action: nil, logged_in: false, login_result: nil, base_url: "https://santaclara.informemedico.com.ar/", idsite: "237", logo_sm: "/api/images/logo_santaclara.png"}, transport_pid: #PID<0.679.0>, ...>, components: {%{}, %{}, 1}, topic: "lv:phx-GDYvJx-nMFLz4wEh", serializer: Phoenix.Socket.V2.JSONSerializer, join_ref: "10", upload_names: %{}, upload_pids: %{}}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 3ms
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] CONNECTED TO Phoenix.LiveView.Socket in 38µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "RQQUFxAVB0UjPAsSNSQYBnonVjEUcSgv16v_zoahIrSJYc_IW_0gP3iz", "_live_referer" => "undefined", "_mounts" => "3", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 11ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con access: 1111.CR y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=1.8ms decode=2.4ms queue=1.8ms idle=363.4ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."accessionnumber" = $2)) ["1111", "1111.CR"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:30
[debug] QUERY OK source="study" db=14.9ms queue=1.9ms idle=382.9ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:35
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 77ms
[debug] QUERY OK db=1.7ms queue=0.8ms idle=428.9ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:30:18.239538Z"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] QUERY OK db=1.1ms queue=0.5ms idle=431.8ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:30:18.250798Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] GET /api/images/logo_santaclara.png
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/images/logo_santaclara.png (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] CONNECTED TO Phoenix.LiveView.Socket in 63µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "RQQUFxAVB0UjPAsSNSQYBnonVjEUcSgv16v_zoahIrSJYc_IW_0gP3iz", "_live_referer" => "undefined", "_mounts" => "4", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 10ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con access: 1111.CR y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=2.7ms decode=5.3ms queue=2.1ms idle=656.0ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."accessionnumber" = $2)) ["1111", "1111.CR"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:30
[debug] QUERY OK source="study" db=21.7ms queue=3.9ms idle=687.3ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:35
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 114ms
[debug] QUERY OK db=1.2ms queue=0.7ms idle=758.1ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:31:10.533038Z"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] QUERY OK db=1.2ms queue=0.8ms idle=760.4ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:31:10.553418Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] CONNECTED TO Phoenix.LiveView.Socket in 35µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "RQQUFxAVB0UjPAsSNSQYBnonVjEUcSgv16v_zoahIrSJYc_IW_0gP3iz", "_live_referer" => "undefined", "_mounts" => "5", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/pacientes
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 1ms
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[info] Sent 200 in 104ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 33µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "AnURGjU_HxovKR8_Ii82LFUnBxEBcQQwvGsR_Ey7EgGgNhqcx_aGE3Ee", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 1ms
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con access: 1111.CR y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=2.3ms idle=1325.8ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."accessionnumber" = $2)) ["1111", "1111.CR"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:30
[debug] QUERY OK source="study" db=3.3ms idle=1328.4ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:35
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 8ms
[debug] QUERY OK db=1.7ms queue=1.0ms idle=1335.3ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:32:14.128902Z"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] QUERY OK db=3.0ms queue=0.3ms idle=1338.3ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T12:32:14.131986Z"}'::bytea, '1nf0rm3', 'aes')::text []
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY="}
Pipelines: [:api]
[info] Hash ----> "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY="
[debug] QUERY OK db=1.1ms queue=1.3ms idle=83.9ms
SELECT convert_from(decrypt(concat('\xcd2bf5a05934aca5ec40a3c6f36f5467af0a939313d8bdd5ce68736bb8b63e3441f31a88269872c0e4be17e959bb963829a6327b463599518ab81dd96da40334d5cf54a6c6616d8b38cfd2b6352e7fdf352dbfb0fbb56abf86fd9fc4956eadaf')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"idstudy\":\"446\",\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:32:14.131986Z\"}"
[debug] Usando clave idstudy con valor 446
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> "446"
[debug] QUERY OK source="study" db=0.7ms queue=1.0ms idle=121.1ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["446"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[info] Sent 500 in 171ms
[error] #PID<0.686.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.685.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY=
** (exit) an exception was raised:
** (ArgumentError) comparison with nil is forbidden as it is unsafe. If you want to check if a value is nil, use is_nil/1 instead
(ecto 3.12.5) lib/ecto/query/builder.ex:1188: Ecto.Query.Builder.not_nil!/1
(api 0.1.0) lib/api/api_consultas/study.ex:32: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:80: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 40µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "AnURGjU_HxovKR8_Ii82LFUnBxEBcQQwvGsR_Ey7EgGgNhqcx_aGE3Ee", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 9ms
[info] GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY="}
Pipelines: [:api]
[info] Hash ----> "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY="
[debug] QUERY OK db=1.1ms queue=0.8ms idle=1839.6ms
SELECT convert_from(decrypt(concat('\xcd2bf5a05934aca5ec40a3c6f36f5467af0a939313d8bdd5ce68736bb8b63e3441f31a88269872c0e4be17e959bb963829a6327b463599518ab81dd96da40334d5cf54a6c6616d8b38cfd2b6352e7fdf352dbfb0fbb56abf86fd9fc4956eadaf')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"idstudy\":\"446\",\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:32:14.131986Z\"}"
[debug] Usando clave idstudy con valor 446
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> "446"
[debug] QUERY OK source="study" db=2.2ms idle=1846.6ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["446"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[info] Sent 500 in 51ms
[error] #PID<0.711.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.710.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgyOWE2MzI3YjQ2MzU5OTUxOGFiODFkZDk2ZGE0MDMzNGQ1Y2Y1NGE2YzY2MTZkOGIzOGNmZDJiNjM1MmU3ZmRmMzUyZGJmYjBmYmI1NmFiZjg2ZmQ5ZmM0OTU2ZWFkYWY=
** (exit) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a binary
:erlang.binary_to_integer(nil)
(api 0.1.0) lib/api/api_consultas/study.ex:20: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:80: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con access: 1111.CR y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=1.4ms queue=1.6ms idle=1263.1ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."accessionnumber" = $2)) ["1111", "1111.CR"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:30
[debug] QUERY OK source="study" db=15.9ms queue=4.6ms idle=1266.6ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:35
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, iddocument: nil, patientname: "TEST", studydescription: "Lower Extremity", idpatient: 425, dni: "1111", accession: "1111.CR", modality: "CR"}]
[debug] Replied in 34ms
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=0.5ms queue=0.4ms idle=1316.9ms
select encrypt('{"accessionnumber":446,"vencimiento":"2025-04-16T12:41:15.595740Z","patientid":"1111"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=0.2ms queue=0.4ms idle=1320.3ms
select encrypt('{"accessionnumber":446,"vencimiento":"2025-04-16T12:41:15.603583Z","patientid":"1111"}'::bytea, '1nf0rm3', 'aes')::text []
[info] GET /api/study/XHg3MmVkNzgwMTRkNmYzNmFmMTcwZGJmNThhMThhYWVhYjc5N2RiZWQ5NTlmMDBhZTgwODRkMWE3NTM0ZDViMGM0MGQ5NGY1YWRhYWEwYWRiZTdlYmNhMzUwYTAwYWEzMjljNzc4ZmIwMGM3YmZkYjExNmM1ZDMxN2Y3ZTRiYWZkMzQyMTZiYWNlNjBiNGMwYjhkYTViYmMwODQzZmQxMjhmNDk5MmVlZGMwYTViYzg3ODMwMDYyOWQwZDIwODcyNGQ=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHg3MmVkNzgwMTRkNmYzNmFmMTcwZGJmNThhMThhYWVhYjc5N2RiZWQ5NTlmMDBhZTgwODRkMWE3NTM0ZDViMGM0MGQ5NGY1YWRhYWEwYWRiZTdlYmNhMzUwYTAwYWEzMjljNzc4ZmIwMGM3YmZkYjExNmM1ZDMxN2Y3ZTRiYWZkMzQyMTZiYWNlNjBiNGMwYjhkYTViYmMwODQzZmQxMjhmNDk5MmVlZGMwYTViYzg3ODMwMDYyOWQwZDIwODcyNGQ="}
Pipelines: [:api]
[info] Hash ----> "XHg3MmVkNzgwMTRkNmYzNmFmMTcwZGJmNThhMThhYWVhYjc5N2RiZWQ5NTlmMDBhZTgwODRkMWE3NTM0ZDViMGM0MGQ5NGY1YWRhYWEwYWRiZTdlYmNhMzUwYTAwYWEzMjljNzc4ZmIwMGM3YmZkYjExNmM1ZDMxN2Y3ZTRiYWZkMzQyMTZiYWNlNjBiNGMwYjhkYTViYmMwODQzZmQxMjhmNDk5MmVlZGMwYTViYzg3ODMwMDYyOWQwZDIwODcyNGQ="
[debug] QUERY OK db=1.7ms queue=1.1ms idle=1349.3ms
SELECT convert_from(decrypt(concat('\x72ed78014d6f36af170dbf58a18aaeab797dbed959f00ae8084d1a7534d5b0c40d94f5adaaa0adbe7ebca350a00aa329c778fb00c7bfdb116c5d317f7e4bafd34216bace60b4c0b8da5bbc0843fd128f4992eedc0a5bc878300629d0d208724d')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"accessionnumber\":446,\"vencimiento\":\"2025-04-16T12:41:15.603583Z\",\"patientid\":\"1111\"}"
[debug] Usando clave accessionnumber con valor 446
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> 446
[debug] QUERY ERROR source="study" db=2.7ms queue=4.8ms idle=1365.6ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) [446]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[info] Sent 500 in 82ms
[error] #PID<0.734.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.733.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHg3MmVkNzgwMTRkNmYzNmFmMTcwZGJmNThhMThhYWVhYjc5N2RiZWQ5NTlmMDBhZTgwODRkMWE3NTM0ZDViMGM0MGQ5NGY1YWRhYWEwYWRiZTdlYmNhMzUwYTAwYWEzMjljNzc4ZmIwMGM3YmZkYjExNmM1ZDMxN2Y3ZTRiYWZkMzQyMTZiYWNlNjBiNGMwYjhkYTViYmMwODQzZmQxMjhmNDk5MmVlZGMwYTViYzg3ODMwMDYyOWQwZDIwODcyNGQ=
** (exit) an exception was raised:
** (DBConnection.EncodeError) Postgrex expected a binary, got 446. Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
(postgrex 0.20.0) lib/postgrex/type_module.ex:1084: Postgrex.DefaultTypes.encode_params/3
(postgrex 0.20.0) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
(db_connection 2.7.0) lib/db_connection.ex:1449: DBConnection.encode/5
(db_connection 2.7.0) lib/db_connection.ex:1549: DBConnection.run_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:1653: DBConnection.run/6
(db_connection 2.7.0) lib/db_connection.ex:772: DBConnection.parsed_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:825: DBConnection.execute/4
(ecto_sql 3.12.1) lib/ecto/adapters/postgres/connection.ex:139: Ecto.Adapters.Postgres.Connection.execute/4
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1038: Ecto.Adapters.SQL.execute!/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:994: Ecto.Adapters.SQL.execute/6
(ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
(ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(ecto 3.12.5) lib/ecto/repo/queryable.ex:154: Ecto.Repo.Queryable.one/3
(api 0.1.0) lib/api/api_consultas/study.ex:20: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:80: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] CONNECTED TO Phoenix.LiveView.Socket in 34µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "AnURGjU_HxovKR8_Ii82LFUnBxEBcQQwvGsR_Ey7EgGgNhqcx_aGE3Ee", "_live_referer" => "undefined", "_mounts" => "1", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 10ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "1111.CR", "patientid" => "1111"}
[info] Ingreso con access: 1111.CR y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=1.7ms decode=2.1ms queue=1.4ms idle=1466.0ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."accessionnumber" = $2)) ["1111", "1111.CR"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:38
[debug] QUERY OK source="study" db=9.4ms queue=1.8ms idle=1484.2ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:43
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 68ms
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=1.0ms queue=0.6ms idle=1515.6ms
select encrypt('{"patientid":"1111","vencimiento":"2025-04-16T12:49:04.370186Z","accessionnumber":"1111.CR"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=0.7ms queue=0.5ms idle=1518.3ms
select encrypt('{"patientid":"1111","vencimiento":"2025-04-16T12:49:04.377959Z","accessionnumber":"1111.CR"}'::bytea, '1nf0rm3', 'aes')::text []
[info] GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="}
Pipelines: [:api]
[info] Hash ----> "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="
[debug] QUERY OK db=0.5ms queue=0.6ms idle=1083.6ms
SELECT convert_from(decrypt(concat('\xb2a155ae3ed653085c7f1ead664ec494deab1e556e3ab1fbe1459af1c49cd9cac5902c433e2253c593dce2a4334a15038bbd3026ab7676f79506b3c4a531a140131fd396b27bb9b33af822f9b161cb56fd57677289fef0dbf3af571be302a9b3')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:49:04.377959Z\",\"accessionnumber\":\"1111.CR\"}"
[debug] Usando clave accessionnumber con valor 1111.CR
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> "1111.CR"
[debug] QUERY OK source="study" db=0.5ms queue=0.8ms idle=1094.7ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["1111.CR"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[info] Sent 500 in 108ms
[error] #PID<0.696.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.695.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
** (exit) an exception was raised:
** (Ecto.MultipleResultsError) expected at most one result but got 3 in query:
from s0 in "study",
where: s0.accessionnumber == ^"1111.CR",
select: s0.idstudy
(ecto 3.12.5) lib/ecto/repo/queryable.ex:157: Ecto.Repo.Queryable.one/3
(api 0.1.0) lib/api/api_consultas/study.ex:20: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:80: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="}
Pipelines: [:api]
[info] Hash ----> "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="
[debug] QUERY OK db=1.8ms queue=0.8ms idle=1012.9ms
SELECT convert_from(decrypt(concat('\xb2a155ae3ed653085c7f1ead664ec494deab1e556e3ab1fbe1459af1c49cd9cac5902c433e2253c593dce2a4334a15038bbd3026ab7676f79506b3c4a531a140131fd396b27bb9b33af822f9b161cb56fd57677289fef0dbf3af571be302a9b3')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:49:04.377959Z\",\"accessionnumber\":\"1111.CR\"}"
[debug] Usando clave accessionnumber con valor 1111.CR
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> "1111.CR"
[debug] QUERY OK source="study" db=0.9ms queue=2.5ms idle=1063.3ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["1111.CR"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[info] Sent 500 in 198ms
[error] #PID<0.686.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.685.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
** (exit) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a binary
:erlang.binary_to_integer(446)
(api 0.1.0) lib/api/api_consultas/study.ex:20: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:80: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 47µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "AnURGjU_HxovKR8_Ii82LFUnBxEBcQQwvGsR_Ey7EgGgNhqcx_aGE3Ee", "_live_referer" => "undefined", "_mounts" => "2", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "t2bHjzf-jNXXlGGO-xfVDBAU"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 10ms
[info] GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="}
Pipelines: [:api]
[info] Hash ----> "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="
[debug] QUERY OK db=0.2ms queue=1.5ms idle=1790.4ms
SELECT convert_from(decrypt(concat('\xb2a155ae3ed653085c7f1ead664ec494deab1e556e3ab1fbe1459af1c49cd9cac5902c433e2253c593dce2a4334a15038bbd3026ab7676f79506b3c4a531a140131fd396b27bb9b33af822f9b161cb56fd57677289fef0dbf3af571be302a9b3')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:49:04.377959Z\",\"accessionnumber\":\"1111.CR\"}"
[debug] Usando clave accessionnumber con valor 1111.CR
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] idstudy en open_study -------> "1111.CR"
[debug] QUERY OK source="study" db=1.3ms idle=799.0ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["1111.CR"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:20
[debug] QUERY OK db=7.5ms queue=3.8ms idle=810.7ms
SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $1 AS "idsite", substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", 'INFORME PRINCIPAL' AS "document_name", 'pdf' AS "document_type", concat($2::text, '/api/downloadpdf/'::text, substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp2."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", ss0."idstudy" AS "accessionnumber", sp2."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyreport" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "patient" AS sp2 ON ss0."idpatient" = sp2."idpatient" WHERE ((NOT (ss1."body" IS NULL) AND (ss0."idstudy" = $3)) AND ss1."idstatus" IN (SELECT sss0."idstatus" FROM "statuses" AS sss0 WHERE (sss0."statusname" IN ('Revisado','Final'))))) AS s0 UNION ALL (SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $4 AS "idsite", substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", ss2."scanclass" AS "document_name", 'url' AS "document_type", concat($5::text, ss1."idstudyscan"::text) AS "url", sp3."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", ss0."idstudy" AS "accessionnumber", sp3."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyscans" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "scanclasses" AS ss2 ON ss2."idscanclass" = ss1."idscanclass" INNER JOIN "patient" AS sp3 ON ss0."idpatient" = sp3."idpatient" WHERE (ss0."idstudy" = $6)) AS s0) UNION ALL (SELECT $7, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3), s1."name", CASE WHEN s1."format" NOT IN ('jpg', 'jpeg', 'png') THEN 'attachment' ELSE 'url' END, concat($8::text, '/api/attachment/'::text, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3)), p2."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), s0."idstudy", '' FROM "study" AS s0 INNER JOIN "studyattachments" AS s1 ON s1."idstudy" = s0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $9)) ["237", "https://santaclara.informemedico.com.ar/", 446, "237", "https://cedialcom.informemedico.com.ar:4443/cgi-bin/imageasjpeg.bf/imageasjpeg/", 446, "237", "https://santaclara.informemedico.com.ar/", 446]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:135
[debug] QUERY OK source="study" db=2.1ms queue=1.5ms idle=822.6ms
SELECT $1, p1."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), s0."idstudy" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $2) ["237", 446]
↳ ApiWeb.StudyController.get_study/1, at: lib/api_web/controllers/study_controller.ex:80
[info] [%{accessionnumber: 446, patientid: "", idsite: "237", patientname: "TEST", proceduredescription: "Lower Extremity", studydate: "2010-06-11", studytime: "10:36:24"}]
[info] Sent 200 in 42ms
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/study/XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="}
Pipelines: [:api]
[info] Hash ----> "XHhiMmExNTVhZTNlZDY1MzA4NWM3ZjFlYWQ2NjRlYzQ5NGRlYWIxZTU1NmUzYWIxZmJlMTQ1OWFmMWM0OWNkOWNhYzU5MDJjNDMzZTIyNTNjNTkzZGNlMmE0MzM0YTE1MDM4YmJkMzAyNmFiNzY3NmY3OTUwNmIzYzRhNTMxYTE0MDEzMWZkMzk2YjI3YmI5YjMzYWY4MjJmOWIxNjFjYjU2ZmQ1NzY3NzI4OWZlZjBkYmYzYWY1NzFiZTMwMmE5YjM="
[debug] QUERY OK db=4.4ms queue=1.0ms idle=379.2ms
SELECT convert_from(decrypt(concat('\xb2a155ae3ed653085c7f1ead664ec494deab1e556e3ab1fbe1459af1c49cd9cac5902c433e2253c593dce2a4334a15038bbd3026ab7676f79506b3c4a531a140131fd396b27bb9b33af822f9b161cb56fd57677289fef0dbf3af571be302a9b3')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T12:49:04.377959Z\",\"accessionnumber\":\"1111.CR\"}"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] get study -------> "ACCESSIONNUMBER"
[debug] Usando clave :accession con valor "1111.CR"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=3.4ms queue=3.3ms idle=405.7ms
SELECT s0."idstudy" FROM "study" AS s0 WHERE (s0."accessionnumber" = $1) ["1111.CR"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:19
[info] accession ----> "1111.CR" - idstudy -------> 446
[info] id_study -------> 446
[debug] QUERY OK db=7.4ms queue=3.5ms idle=434.3ms
SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $1::bigint AS "idsite", substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", 'INFORME PRINCIPAL' AS "document_name", 'pdf' AS "document_type", concat($2::text, '/api/downloadpdf/'::text, substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp2."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $3::text AS "accessionnumber", sp2."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyreport" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "patient" AS sp2 ON ss0."idpatient" = sp2."idpatient" WHERE ((NOT (ss1."body" IS NULL) AND (ss0."idstudy" = $4)) AND ss1."idstatus" IN (SELECT sss0."idstatus" FROM "statuses" AS sss0 WHERE (sss0."statusname" IN ('Revisado','Final'))))) AS s0 UNION ALL (SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $5::bigint AS "idsite", substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", ss2."scanclass" AS "document_name", 'url' AS "document_type", concat($6::text, substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp3."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $7::text AS "accessionnumber", sp3."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyscans" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "scanclasses" AS ss2 ON ss2."idscanclass" = ss1."idscanclass" INNER JOIN "patient" AS sp3 ON ss0."idpatient" = sp3."idpatient" WHERE (ss0."idstudy" = $8)) AS s0) UNION ALL (SELECT $9::bigint, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3), s1."name", CASE WHEN s1."format" NOT IN ('jpg', 'jpeg', 'png') THEN 'attachment' ELSE 'url' END, concat($10::text, '/api/attachment/'::text, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3)), p2."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), $11::text, '' FROM "study" AS s0 INNER JOIN "studyattachments" AS s1 ON s1."idstudy" = s0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $12)) [237, "https://santaclara.informemedico.com.ar/", "1111.CR", 446, 237, "https://cedialcom.informemedico.com.ar:4443/cgi-bin/imageasjpeg.bf/imageasjpeg/", "1111.CR", 446, 237, "https://santaclara.informemedico.com.ar/", "1111.CR", 446]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:147
[debug] QUERY OK source="study" db=0.8ms queue=0.8ms idle=445.8ms
SELECT $1::bigint, p1."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), $2::text FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $3) [237, "1111.CR", 446]
↳ ApiWeb.StudyController.get_study/1, at: lib/api_web/controllers/study_controller.ex:91
[info] [%{accessionnumber: "1111.CR", patientid: "", idsite: 237, patientname: "TEST", proceduredescription: "Lower Extremity", studydate: "2010-06-11", studytime: "10:36:24"}]
[info] Sent 200 in 115ms
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /
[debug] Processing with ApiWeb.PageController.home/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 302 in 45ms
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[info] Sent 200 in 85ms
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 22µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "JgMbYjk7Q3MpEBcQMBgDCgkWMz4CJEwwGAC1zrpGCFYHXs4aoZIalmaC", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "aBXSCI34jVNXhk7kfLz_nI-s"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 1ms
[debug] HANDLE EVENT "logged" in ApiWeb.IndexLive
Parameters: %{"acceso_ed" => "446", "patientid" => "1111"}
[info] Ingreso con access: 446 y patientid: 1111
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=1.1ms queue=1.0ms idle=1343.6ms
SELECT s0."idstudy", p1."patientname" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE ((p1."patientid" = $1) AND (s0."idstudy" = $2)) ["1111", 446]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:38
[debug] QUERY OK source="study" db=14.6ms queue=1.3ms idle=1348.3ms
SELECT s0."idstudy", p1."idpatient", substring(encrypt(s2."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3), s0."studydate", p1."patientid", s0."modality", s0."accessionnumber", p1."patientname", s2."idstatus", s0."studydescription" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" LEFT OUTER JOIN "studyreport" AS s2 ON s2."idstudy" = s0."idstudy" WHERE (p1."patientid" = $1) ORDER BY s0."studydate" DESC ["1111"]
↳ ApiWeb.IndexLive.handle_event/3, at: lib/api_web/live/index_live.ex:43
[info] lista ----> [%{status: nil, date: ~D[2010-06-11], idstudy: 446, patientname: "TEST", dni: "1111", accession: "1111.CR", studydescription: "Lower Extremity", iddocument: nil, idpatient: 425, modality: "CR"}]
[debug] Replied in 38ms
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=3.2ms queue=0.5ms idle=1377.9ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T14:38:54.589307Z"}'::bytea, '1nf0rm3', 'aes')::text []
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK db=0.8ms queue=0.6ms idle=1382.8ms
select encrypt('{"idstudy":"446","patientid":"1111","vencimiento":"2025-04-16T14:38:54.597531Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI="}
Pipelines: [:api]
[info] Hash ----> "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI="
[debug] QUERY OK db=0.7ms queue=0.5ms idle=557.6ms
SELECT convert_from(decrypt(concat('\xcd2bf5a05934aca5ec40a3c6f36f5467af0a939313d8bdd5ce68736bb8b63e3441f31a88269872c0e4be17e959bb9638072f5d700d2cecb0e8b76a8986a33b32b8d6e3c02587ff0d48cb4aec8dd030d46080f1c71c15b3a52b62ddc8c927a052')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"idstudy\":\"446\",\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T14:38:54.597531Z\"}"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] get study -------> "IDSTUDY"
[debug] Usando clave :idstudy con valor "446"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] id_study -------> 446
[debug] QUERY ERROR db=5.0ms queue=1.9ms idle=577.1ms
SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $1::bigint AS "idsite", substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", 'INFORME PRINCIPAL' AS "document_name", 'pdf' AS "document_type", concat($2::text, '/api/downloadpdf/'::text, substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp2."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $3::text AS "accessionnumber", sp2."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyreport" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "patient" AS sp2 ON ss0."idpatient" = sp2."idpatient" WHERE ((NOT (ss1."body" IS NULL) AND (ss0."idstudy" = $4)) AND ss1."idstatus" IN (SELECT sss0."idstatus" FROM "statuses" AS sss0 WHERE (sss0."statusname" IN ('Revisado','Final'))))) AS s0 UNION ALL (SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $5::bigint AS "idsite", substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", ss2."scanclass" AS "document_name", 'url' AS "document_type", concat($6::text, substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp3."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $7::text AS "accessionnumber", sp3."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyscans" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "scanclasses" AS ss2 ON ss2."idscanclass" = ss1."idscanclass" INNER JOIN "patient" AS sp3 ON ss0."idpatient" = sp3."idpatient" WHERE (ss0."idstudy" = $8)) AS s0) UNION ALL (SELECT $9::bigint, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3), s1."name", CASE WHEN s1."format" NOT IN ('jpg', 'jpeg', 'png') THEN 'attachment' ELSE 'url' END, concat($10::text, '/api/attachment/'::text, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3)), p2."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), $11::text, '' FROM "study" AS s0 INNER JOIN "studyattachments" AS s1 ON s1."idstudy" = s0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $12)) [237, "https://santaclara.informemedico.com.ar/", 446, 446, 237, "https://cedialcom.informemedico.com.ar:4443/cgi-bin/imageasjpeg.bf/imageasjpeg/", 446, 446, 237, "https://santaclara.informemedico.com.ar/", 446, 446]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:147
[info] Sent 500 in 71ms
[error] #PID<0.727.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.726.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI=
** (exit) an exception was raised:
** (DBConnection.EncodeError) Postgrex expected a binary, got 446. Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
(postgrex 0.20.0) lib/postgrex/type_module.ex:1084: Postgrex.DefaultTypes.encode_params/3
(postgrex 0.20.0) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
(db_connection 2.7.0) lib/db_connection.ex:1449: DBConnection.encode/5
(db_connection 2.7.0) lib/db_connection.ex:1549: DBConnection.run_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:1653: DBConnection.run/6
(db_connection 2.7.0) lib/db_connection.ex:772: DBConnection.parsed_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:764: DBConnection.prepare_execute/4
(ecto_sql 3.12.1) lib/ecto/adapters/postgres/connection.ex:104: Ecto.Adapters.Postgres.Connection.prepare_execute/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1002: Ecto.Adapters.SQL.execute!/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:994: Ecto.Adapters.SQL.execute/6
(ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
(ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(api 0.1.0) lib/api/api_consultas/study.ex:147: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:91: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
[info] GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI=
[debug] Processing with ApiWeb.StudyController.index/2
Parameters: %{"hash" => "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI="}
Pipelines: [:api]
[info] Hash ----> "XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI="
[debug] QUERY OK db=0.7ms queue=0.5ms idle=79.9ms
SELECT convert_from(decrypt(concat('\xcd2bf5a05934aca5ec40a3c6f36f5467af0a939313d8bdd5ce68736bb8b63e3441f31a88269872c0e4be17e959bb9638072f5d700d2cecb0e8b76a8986a33b32b8d6e3c02587ff0d48cb4aec8dd030d46080f1c71c15b3a52b62ddc8c927a052')::bytea, '1nf0rm3', 'aes'), 'UTF8')::text
[]
[info] decrypted ---> "{\"idstudy\":\"446\",\"patientid\":\"1111\",\"vencimiento\":\"2025-04-16T14:38:54.597531Z\"}"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] get study -------> "IDSTUDY"
[debug] Usando clave :idstudy con valor "446"
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[info] id_study -------> "446"
[debug] QUERY ERROR db=4.6ms queue=1.9ms idle=85.0ms
SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $1::bigint AS "idsite", substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", 'INFORME PRINCIPAL' AS "document_name", 'pdf' AS "document_type", concat($2::text, '/api/downloadpdf/'::text, substring(encrypt(ss1."idstudyreport"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp2."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $3::text AS "accessionnumber", sp2."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyreport" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "patient" AS sp2 ON ss0."idpatient" = sp2."idpatient" WHERE ((NOT (ss1."body" IS NULL) AND (ss0."idstudy" = $4)) AND ss1."idstatus" IN (SELECT sss0."idstatus" FROM "statuses" AS sss0 WHERE (sss0."statusname" IN ('Revisado','Final'))))) AS s0 UNION ALL (SELECT s0."idsite", s0."iddocument", s0."document_name", s0."document_type", s0."url", s0."patientname", s0."proceduredescription", s0."studydate", s0."studytime", s0."accessionnumber", s0."patientid" FROM (SELECT $5::bigint AS "idsite", substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "iddocument", ss2."scanclass" AS "document_name", 'url' AS "document_type", concat($6::text, substring(encrypt(ss1."idstudyscan"::text::bytea, '1nf0rm3', 'aes')::text from 3)) AS "url", sp3."patientname" AS "patientname", ss0."studydescription" AS "proceduredescription", TO_CHAR(ss0."studydate", 'YYYY-MM-DD') AS "studydate", TO_CHAR(ss0."studytime", 'HH24:MI:SS') AS "studytime", $7::text AS "accessionnumber", sp3."patientid" AS "patientid" FROM "study" AS ss0 INNER JOIN "studyscans" AS ss1 ON ss1."idstudy" = ss0."idstudy" INNER JOIN "scanclasses" AS ss2 ON ss2."idscanclass" = ss1."idscanclass" INNER JOIN "patient" AS sp3 ON ss0."idpatient" = sp3."idpatient" WHERE (ss0."idstudy" = $8)) AS s0) UNION ALL (SELECT $9::bigint, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3), s1."name", CASE WHEN s1."format" NOT IN ('jpg', 'jpeg', 'png') THEN 'attachment' ELSE 'url' END, concat($10::text, '/api/attachment/'::text, substring(encrypt(s1."idstudyattachment"::text::bytea, '1nf0rm3', 'aes')::text from 3)), p2."patientname", s0."studydescription", TO_CHAR(s0."studydate", 'YYYY-MM-DD'), TO_CHAR(s0."studytime", 'HH24:MI:SS'), $11::text, '' FROM "study" AS s0 INNER JOIN "studyattachments" AS s1 ON s1."idstudy" = s0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $12)) [237, "https://santaclara.informemedico.com.ar/", "446", "446", 237, "https://cedialcom.informemedico.com.ar:4443/cgi-bin/imageasjpeg.bf/imageasjpeg/", "446", "446", 237, "https://santaclara.informemedico.com.ar/", "446", "446"]
↳ Api.Study.open_study/1, at: lib/api/api_consultas/study.ex:147
[info] Sent 500 in 57ms
[error] #PID<0.742.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.741.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/study/XHhjZDJiZjVhMDU5MzRhY2E1ZWM0MGEzYzZmMzZmNTQ2N2FmMGE5MzkzMTNkOGJkZDVjZTY4NzM2YmI4YjYzZTM0NDFmMzFhODgyNjk4NzJjMGU0YmUxN2U5NTliYjk2MzgwNzJmNWQ3MDBkMmNlY2IwZThiNzZhODk4NmEzM2IzMmI4ZDZlM2MwMjU4N2ZmMGQ0OGNiNGFlYzhkZDAzMGQ0NjA4MGYxYzcxYzE1YjNhNTJiNjJkZGM4YzkyN2EwNTI=
** (exit) an exception was raised:
** (DBConnection.EncodeError) Postgrex expected an integer in -2147483648..2147483647, got "446". Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
(postgrex 0.20.0) lib/postgrex/type_module.ex:1084: Postgrex.DefaultTypes.encode_params/3
(postgrex 0.20.0) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
(db_connection 2.7.0) lib/db_connection.ex:1449: DBConnection.encode/5
(db_connection 2.7.0) lib/db_connection.ex:1549: DBConnection.run_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:1653: DBConnection.run/6
(db_connection 2.7.0) lib/db_connection.ex:772: DBConnection.parsed_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:764: DBConnection.prepare_execute/4
(ecto_sql 3.12.1) lib/ecto/adapters/postgres/connection.ex:104: Ecto.Adapters.Postgres.Connection.prepare_execute/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1002: Ecto.Adapters.SQL.execute!/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:994: Ecto.Adapters.SQL.execute/6
(ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
(ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(api 0.1.0) lib/api/api_consultas/study.ex:147: Api.Study.open_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:91: ApiWeb.StudyController.get_study/1
(api 0.1.0) lib/api_web/controllers/study_controller.ex:37: ApiWeb.StudyController.index/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.action/2
(api 0.1.0) lib/api_web/controllers/study_controller.ex:1: ApiWeb.StudyController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[info] Sent 500 in 100ms
[error] #PID<0.686.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.685.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: POST /api/studies/
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Access.get/3
(elixir 1.18.0) lib/access.ex:320: Access.get({:dir, :desc}, "dir", nil)
(api 0.1.0) lib/api/api_consultas/studies.ex:77: anonymous fn/1 in Api.Studies.studies_sql_query/1
(elixir 1.18.0) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
(api 0.1.0) lib/api/api_consultas/studies.ex:76: Api.Studies.studies_sql_query/1
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:6: ApiWeb.StudiesController.index/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.action/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 25µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "JgMbYjk7Q3MpEBcQMBgDCgkWMz4CJEwwGAC1zrpGCFYHXs4aoZIalmaC", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "aBXSCI34jVNXhk7kfLz_nI-s"}
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[error] ERROR: FROM Environment Variable is not set
[debug] Replied in 7ms
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[info] Sent 500 in 47ms
[error] #PID<0.712.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.711.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: POST /api/studies/
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Access.get/3
(elixir 1.18.0) lib/access.ex:320: Access.get({:dir, :desc}, "dir", nil)
(api 0.1.0) lib/api/api_consultas/studies.ex:77: anonymous fn/1 in Api.Studies.studies_sql_query/1
(elixir 1.18.0) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
(api 0.1.0) lib/api/api_consultas/studies.ex:76: Api.Studies.studies_sql_query/1
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:6: ApiWeb.StudiesController.index/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.action/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[info] Sent 500 in 32ms
[error] #PID<0.732.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.731.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: POST /api/studies/
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Access.get/3
(elixir 1.18.0) lib/access.ex:320: Access.get({:dir, :desc}, "dir", nil)
(api 0.1.0) lib/api/api_consultas/studies.ex:78: anonymous fn/1 in Api.Studies.studies_sql_query/1
(elixir 1.18.0) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
(api 0.1.0) lib/api/api_consultas/studies.ex:77: Api.Studies.studies_sql_query/1
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:6: ApiWeb.StudiesController.index/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.action/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[debug] QUERY OK db=20.6ms queue=10.3ms idle=1546.2ms
SELECT json_agg(s0)::text, s0."recordstotal" FROM (SELECT count(*) over() AS "recordstotal", substring(encrypt(ss0."idstudy"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "idstudy", ss0."accessionnumber" AS "accessionnumber", ss0."studydate" AS "studydate", ss0."studytime" AS "studytime", (select replace(sp1."patientname", '^', ' ')) AS "patientname", ss0."studydescription" AS "proceduredescription", ss0."modality" AS "modality", ss0."institutionname" AS "sitename", ss0."insurer" AS "insurer", substring(encrypt(sp1."patientid"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "nrodocumento", CASE WHEN ss0."audiofile" IS NOT NULL THEN true ELSE false END AS "hasaudio" FROM "study" AS ss0 INNER JOIN "patient" AS sp1 ON sp1."idpatient" = ss0."idpatient" LEFT OUTER JOIN "studyreport" AS ss2 ON ss2."idstudy" = ss0."idstudy" LEFT OUTER JOIN "statuses" AS ss3 ON ss3."idstatus" = ss2."idstudyreport" ORDER BY ss0."studydate" DESC LIMIT $1 OFFSET $2) AS s0 GROUP BY s0."recordstotal" [24, 0]
↳ Api.Studies.studies_sql_query/1, at: lib/api/api_consultas/studies.ex:116
[info] Sent 200 in 78ms
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[debug] QUERY ERROR db=0.0ms queue=13.9ms idle=1587.1ms
SELECT json_agg(s0)::text, s0."recordstotal" FROM (SELECT count(*) over() AS "recordstotal", substring(encrypt(ss0."idstudy"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "idstudy", ss0."accessionnumber" AS "accessionnumber", ss0."studydate" AS "studydate", ss0."studytime" AS "studytime", (select replace(sp1."patientname", '^', ' ')) AS "patientname", ss0."studydescription" AS "proceduredescription", ss0."modality" AS "modality", ss0."institutionname" AS "sitename", ss0."insurer" AS "insurer", substring(encrypt(sp1."patientid"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "nrodocumento", CASE WHEN ss0."audiofile" IS NOT NULL THEN true ELSE false END AS "hasaudio" FROM "study" AS ss0 INNER JOIN "patient" AS sp1 ON sp1."idpatient" = ss0."idpatient" LEFT OUTER JOIN "studyreport" AS ss2 ON ss2."idstudy" = ss0."idstudy" LEFT OUTER JOIN "statuses" AS ss3 ON ss3."idstatus" = ss2."idstudyreport" ORDER BY ss0."studydate_start" DESC LIMIT $1 OFFSET $2) AS s0 GROUP BY s0."recordstotal" [24, 0]
↳ Api.Studies.studies_sql_query/1, at: lib/api/api_consultas/studies.ex:116
[info] Sent 500 in 56ms
[error] #PID<0.771.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.770.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: POST /api/studies/
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 42703 (undefined_column) column ss0.studydate_start does not exist
query: SELECT json_agg(s0)::text, s0."recordstotal" FROM (SELECT count(*) over() AS "recordstotal", substring(encrypt(ss0."idstudy"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "idstudy", ss0."accessionnumber" AS "accessionnumber", ss0."studydate" AS "studydate", ss0."studytime" AS "studytime", (select replace(sp1."patientname", '^', ' ')) AS "patientname", ss0."studydescription" AS "proceduredescription", ss0."modality" AS "modality", ss0."institutionname" AS "sitename", ss0."insurer" AS "insurer", substring(encrypt(sp1."patientid"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "nrodocumento", CASE WHEN ss0."audiofile" IS NOT NULL THEN true ELSE false END AS "hasaudio" FROM "study" AS ss0 INNER JOIN "patient" AS sp1 ON sp1."idpatient" = ss0."idpatient" LEFT OUTER JOIN "studyreport" AS ss2 ON ss2."idstudy" = ss0."idstudy" LEFT OUTER JOIN "statuses" AS ss3 ON ss3."idstatus" = ss2."idstudyreport" ORDER BY ss0."studydate_start" DESC LIMIT $1 OFFSET $2) AS s0 GROUP BY s0."recordstotal"
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1096: Ecto.Adapters.SQL.raise_sql_call_error/1
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:994: Ecto.Adapters.SQL.execute/6
(ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
(ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(ecto 3.12.5) lib/ecto/repo/queryable.ex:154: Ecto.Repo.Queryable.one/3
(api 0.1.0) lib/api/api_consultas/studies.ex:116: Api.Studies.studies_sql_query/1
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:6: ApiWeb.StudiesController.index/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.action/2
(api 0.1.0) lib/api_web/controllers/studies_controller.ex:1: ApiWeb.StudiesController.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 5.2.3.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[info] POST /api/studies/
[debug] Processing with ApiWeb.StudiesController.index/2
Parameters: %{}
Pipelines: [:api]
[debug] QUERY OK db=13.7ms queue=0.4ms idle=1720.3ms
SELECT json_agg(s0)::text, s0."recordstotal" FROM (SELECT count(*) over() AS "recordstotal", substring(encrypt(ss0."idstudy"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "idstudy", ss0."accessionnumber" AS "accessionnumber", ss0."studydate" AS "studydate", ss0."studytime" AS "studytime", (select replace(sp1."patientname", '^', ' ')) AS "patientname", ss0."studydescription" AS "proceduredescription", ss0."modality" AS "modality", ss0."institutionname" AS "sitename", ss0."insurer" AS "insurer", substring(encrypt(sp1."patientid"::text::bytea, '1nf0rm3', 'aes')::text from 3) AS "nrodocumento", CASE WHEN ss0."audiofile" IS NOT NULL THEN true ELSE false END AS "hasaudio" FROM "study" AS ss0 INNER JOIN "patient" AS sp1 ON sp1."idpatient" = ss0."idpatient" LEFT OUTER JOIN "studyreport" AS ss2 ON ss2."idstudy" = ss0."idstudy" LEFT OUTER JOIN "statuses" AS ss3 ON ss3."idstatus" = ss2."idstudyreport" ORDER BY ss0."studydate" DESC LIMIT $1 OFFSET $2) AS s0 GROUP BY s0."recordstotal" [24, 0]
↳ Api.Studies.studies_sql_query/1, at: lib/api/api_consultas/studies.ex:116
[info] Sent 200 in 42ms
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[debug] Tzdata polling shows the loaded tz database is up to date.
[info] GET /api/gethash/446
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "446"}
Pipelines: [:api]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY ERROR source="study" db=17.8ms queue=4.0ms idle=1417.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $1) ["446"]
↳ ApiWeb.GetHash.index/2, at: lib/api_web/controllers/get_hash.ex:34
[info] Sent 500 in 138ms
[error] #PID<0.694.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.693.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/gethash/446
** (exit) an exception was raised:
** (DBConnection.EncodeError) Postgrex expected an integer in -2147483648..2147483647, got "446". Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
(postgrex 0.20.0) lib/postgrex/type_module.ex:1084: Postgrex.DefaultTypes.encode_params/3
(postgrex 0.20.0) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
(db_connection 2.7.0) lib/db_connection.ex:1449: DBConnection.encode/5
(db_connection 2.7.0) lib/db_connection.ex:1549: DBConnection.run_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:1653: DBConnection.run/6
(db_connection 2.7.0) lib/db_connection.ex:772: DBConnection.parsed_prepare_execute/5
(db_connection 2.7.0) lib/db_connection.ex:764: DBConnection.prepare_execute/4
(ecto_sql 3.12.1) lib/ecto/adapters/postgres/connection.ex:104: Ecto.Adapters.Postgres.Connection.prepare_execute/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1002: Ecto.Adapters.SQL.execute!/5
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:994: Ecto.Adapters.SQL.execute/6
(ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
(ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(ecto 3.12.5) lib/ecto/repo/queryable.ex:154: Ecto.Repo.Queryable.one/3
(api 0.1.0) lib/api_web/controllers/get_hash.ex:34: ApiWeb.GetHash.index/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.action/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
[info] GET /api/gethash/446
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "446"}
Pipelines: [:api]
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] .env file path: /home/aime/cloned_im_2.0/clientes/santa_clara/api/.env
[debug] QUERY OK source="study" db=12.5ms queue=1.0ms idle=1526.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."idstudy" = $1) [446]
↳ ApiWeb.GetHash.index/2, at: lib/api_web/controllers/get_hash.ex:34
[debug] QUERY OK db=5.9ms queue=1.8ms idle=566.3ms
select encrypt('{"vencimiento":"2025-04-17T12:23:50.060351Z","idstudy":446,"patientid":"1111"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 55ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[debug] Tzdata polling shows the loaded tz database is up to date.
[info] GET /
[debug] Processing with ApiWeb.PageController.home/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 302 in 214ms
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 200 in 218ms
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 36µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 3ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] Sent 302 in 3ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 35µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 2ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 73µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 3ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] Sent 302 in 2ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 59µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 2ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 20µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 1ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] CONNECTED TO Phoenix.LiveView.Socket in 28µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "CU82MUALFjhvXwYQQSM9DRRWNytRKTc3s9WisZeVY53b4RyX_3QieBty", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "zvaX3Qsn6j5ruqDUKefB4kCN"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 1ms
[info] Sent 500 in 1480ms
[error] #PID<0.1040.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1039.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (ArgumentError) construction of binary failed: segment 2 of type 'binary': expected a binary but got: {:error, "Error HTTP 404: {\"error\":\"Estudio no encontrado\"}"}
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1912
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1912"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1912"
[info] Sent 302 in 1041ms
[info] GET /api/redirect/100
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "100"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "100"
[info] Sent 302 in 1140ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] Sent 500 in 1136ms
[error] #PID<0.1141.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1140.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (ArgumentError) construction of binary failed: segment 2 of type 'binary': expected a binary but got: {:error, "Error HTTP 404: {\"error\":\"Estudio no encontrado\"}"}
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] Sent 200 in 1083ms
[error] #PID<0.1277.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1276.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.1277.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], ApiWeb.Router => ["api"], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDchv6GLKECKdCIAAGIF"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/123
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "123"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "123"
[info] Sent 200 in 1047ms
[error] #PID<0.1310.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1309.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/123
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.1310.0>, params: %{"accession" => "123"}, path_info: ["api", "redirect", "123"], path_params: %{"accession" => "123"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], ApiWeb.Router => ["api"], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/123", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDchw0v9U7nZGckAALgD"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1908
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1908"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1908"
[info] Sent 500 in 221ms
[error] #PID<0.1323.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1309.0>, stream id 2) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1908
** (exit) an exception was raised:
** (CaseClauseError) no case clause matching: "XHgzNDA3N2Q4ZWZkMTA4NDMxNmUwYzBlZjE4ZTQ5MGY3NjAwOGMwN2ExZmQ1MWFlMzVkZDlhMWE1OTU0ODc3OTcyZjMyNTUwYzU5YjhlNWNmMjVjMWE1YTYwYjMwMjk4ZmY2NzMxMmM1NjUzNGIxMWMxZmNmODQxNDdlNGRlYjE1OGM2MTIxMmE1ZGEwNDgyZGJjNTQ5NjY2MGYzNjg5NGE3MDJiMjgzMDUyMGI0OGJkOTRkYzQxOGVmYTBiZmQ1YmY="
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1908
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1908"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1908"
[info] Sent 302 in 1069ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[info] Sent 200 in 1003ms
[error] #PID<0.1428.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1427.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.1428.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], ApiWeb.Router => ["api"], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"dnt", "1"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "cross-site"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDch39bIAOjRY6gAAFgG"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/192'
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "192'"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "192'"
[info] Sent 200 in 1056ms
[error] #PID<0.1442.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1441.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/192'
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.1442.0>, params: %{"accession" => "192'"}, path_info: ["api", "redirect", "192'"], path_params: %{"accession" => "192'"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], ApiWeb.Router => ["api"], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/192'", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDch9q5YNlVUTbgAAXIE"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1920
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1920"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1920"
[info] Sent 302 in 194ms
[info] GET /api/redirect/12240
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "12240"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "12240"
[info] Sent 302 in 1056ms
[info] GET /api/redirect/123
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "123"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "123"
[info] Sent 200 in 1066ms
[error] #PID<0.1499.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1498.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/123
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.1499.0>, params: %{"accession" => "123"}, path_info: ["api", "redirect", "123"], path_params: %{"accession" => "123"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], ApiWeb.Router => ["api"], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/123", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDciNbmlfEl2rlwAAI4F"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/12240
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "12240"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "12240"
[info] Sent 302 in 1130ms
[info] GET /api/redirect/12240
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "12240"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "12240"
[info] Sent 302 in 1075ms
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 401 in 17ms
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=11.4ms queue=6.7ms idle=1430.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY ERROR db=0.0ms queue=20.1ms idle=1475.6ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:00:02.410775Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 91ms
[error] #PID<0.1667.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1666.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/gethash/1599
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 42883 (undefined_function) no existe la función encrypt(bytea, unknown, unknown)
query: select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:00:02.410775Z"}'::bytea, '1nf0rm3', 'aes')::text
hint: Ninguna función coincide en el nombre y tipos de argumentos. Puede ser necesario agregar conversión explícita de tipos.
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1096: Ecto.Adapters.SQL.raise_sql_call_error/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:77: ApiWeb.GetHash.generate_token/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:48: ApiWeb.GetHash.get_hash/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.action/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=2.5ms idle=1768.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY ERROR db=0.0ms queue=0.9ms idle=1770.9ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:00:30.736671Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 23ms
[error] #PID<0.1676.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1675.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/gethash/1599
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 42883 (undefined_function) no existe la función encrypt(bytea, unknown, unknown)
query: select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:00:30.736671Z"}'::bytea, '1nf0rm3', 'aes')::text
hint: Ninguna función coincide en el nombre y tipos de argumentos. Puede ser necesario agregar conversión explícita de tipos.
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1096: Ecto.Adapters.SQL.raise_sql_call_error/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:77: ApiWeb.GetHash.generate_token/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:48: ApiWeb.GetHash.get_hash/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.action/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=0.5ms idle=386.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY ERROR db=0.0ms queue=0.5ms idle=387.1ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:02:00.375945Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 15ms
[error] #PID<0.1686.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.1685.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/gethash/1599
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 42883 (undefined_function) no existe la función encrypt(bytea, unknown, unknown)
query: select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:02:00.375945Z"}'::bytea, '1nf0rm3', 'aes')::text
hint: Ninguna función coincide en el nombre y tipos de argumentos. Puede ser necesario agregar conversión explícita de tipos.
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1096: Ecto.Adapters.SQL.raise_sql_call_error/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:77: ApiWeb.GetHash.generate_token/1
(api 0.1.0) lib/api_web/controllers/get_hash.ex:48: ApiWeb.GetHash.get_hash/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.action/2
(api 0.1.0) lib/api_web/controllers/get_hash.ex:1: ApiWeb.GetHash.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=4.1ms idle=1574.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.6ms queue=0.6ms idle=1578.6ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:04:09.588733Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 8ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=1.3ms queue=1.9ms idle=1890.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.8ms queue=0.7ms idle=1924.4ms
select encrypt('{"vencimiento":"2025-04-19T15:04:35.130557Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 152ms
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 401 in 31ms
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=2.4ms idle=733.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/2, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.3ms queue=0.3ms idle=736.6ms
select encrypt('{"vencimiento":"2025-04-19T15:09:03.049835Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 9ms
[info] GET /favicon.ico
[error] #PID<0.662.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.661.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not an iodata term
:erlang.iolist_to_binary(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.662.0>, params: %{"accession" => "1599"}, path_info: ["api", "redirect", "1599"], path_params: %{"accession" => "1599"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1599", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "application/json; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDcjnjWseNO1KKMAAAgF"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(jason 1.4.4) lib/jason.ex:69: Jason.decode/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:37: ApiWeb.Redirect.get_hash_v2/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[info] Sent 500 in 41ms
[error] #PID<0.684.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.683.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (UndefinedFunctionError) function ApiWeb.GetHash.get_hash/2 is undefined or private
(api 0.1.0) ApiWeb.GetHash.get_hash(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.684.0>, params: %{"accession" => "1599"}, path_info: ["api", "redirect", "1599"], path_params: %{"accession" => "1599"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1599", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDckCnFoxZIG1dEAABgE"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :unset, status: nil}, "1599")
(api 0.1.0) lib/api_web/controllers/redirect.ex:36: ApiWeb.Redirect.get_hash_v2/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=2.7ms queue=0.1ms idle=1662.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.3ms queue=0.4ms idle=1665.8ms
select encrypt('{"vencimiento":"2025-04-19T15:17:32.121913Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 73ms
[error] #PID<0.761.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.760.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol String.Chars not implemented for type Jason.DecodeError (a struct). This protocol is implemented for the following type(s): Atom, BitString, Date, DateTime, Decimal, Float, Integer, List, NaiveDateTime, Phoenix.LiveComponent.CID, Postgrex.Copy, Postgrex.Query, Time, URI, Version, Version.Requirement
Got value:
%Jason.DecodeError{
position: 0,
token: nil,
data: "XHg4YzQ3OTg0ZjY1YzY3NWU2ZWI5MjI4NDkzNzRkMjQ4NTEzYjY3ZDFlZDA5MTY0NmVkMWYwMmYwYjQ1ZDZkODcwMDJkYWUxZjk2NmIyZGI3MWYyM2ZkYTMxM2JhM2U0ODViODVlYjk4YWYwMDQxZWVlOTdmOTY1YjM3MGRjNDdiYjc1OThiMGEwOGRjYjIyNTdiYzkwOWI2OTI3OWE3NjYwMTNjOGZlNzBiNzU2MjNkODg3NDM1YzU0OWZkYTI4NGY="
}
(elixir 1.18.3) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.18.3) lib/string/chars.ex:22: String.Chars.to_string/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:43: ApiWeb.Redirect.get_hash_v2/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 401 in 875µs
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=0.7ms idle=1750.8ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.8ms queue=0.5ms idle=1751.9ms
select encrypt('{"vencimiento":"2025-04-19T15:18:29.226471Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 3ms
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=0.4ms idle=1412.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.7ms queue=0.3ms idle=1412.7ms
select encrypt('{"vencimiento":"2025-04-19T15:18:30.887389Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 2ms
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=0.7ms idle=1701.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.2ms queue=0.8ms idle=1702.6ms
select encrypt('{"vencimiento":"2025-04-19T15:18:32.177514Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 4ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=1.1ms queue=0.9ms idle=447.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.0ms queue=0.8ms idle=482.9ms
select encrypt('{"vencimiento":"2025-04-19T15:19:13.114268Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 146ms
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=2.1ms queue=0.1ms idle=73.0ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.6ms queue=0.5ms idle=75.5ms
select encrypt('{"vencimiento":"2025-04-19T15:19:48.735205Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 132ms
[error] #PID<0.615.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.614.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol String.Chars not implemented for type Jason.DecodeError (a struct). This protocol is implemented for the following type(s): Atom, BitString, Date, DateTime, Decimal, Float, Integer, List, NaiveDateTime, Phoenix.LiveComponent.CID, Postgrex.Copy, Postgrex.Query, Time, URI, Version, Version.Requirement
Got value:
%Jason.DecodeError{
position: 0,
token: nil,
data: "XHg4YzQ3OTg0ZjY1YzY3NWU2ZWI5MjI4NDkzNzRkMjQ4NWYxYTNhYzJjNzk1MzU4ZTRhMWNiYjEyNGZkZjAzMzI4MGFjY2QxNDRiNmFiNWFjMzdlZjA0OTlmZTY0M2E1YTg1N2VjZDhkMmVkM2JmODU2MzAxYjRmNmM1ZDQ2MzQxMDNiYWUzODYzNjAwNGM3MGE3YjQ3ZmFiMjBmNWRkMzVjMzEyNzc2Y2ZjNjBjMjI4MGUxODFiNzg5YTU0YWU2YmQ="
}
(elixir 1.18.3) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.18.3) lib/string/chars.ex:22: String.Chars.to_string/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:43: ApiWeb.Redirect.get_hash_v2/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=3.1ms idle=1498.0ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.6ms queue=0.6ms idle=1501.6ms
select encrypt('{"vencimiento":"2025-04-19T15:20:26.162836Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 27ms
[error] #PID<0.632.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.631.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol String.Chars not implemented for type Jason.DecodeError (a struct)
Got value:
%Jason.DecodeError{
position: 0,
token: nil,
data: "XHg4YzQ3OTg0ZjY1YzY3NWU2ZWI5MjI4NDkzNzRkMjQ4NTFiMzc5YTQ1MTFiNDJlNDk2ZmM5N2NiNWY4ZmI1MDdiMjI3ZTc5MDc4ZjFmMmYzNDc0MDFmOGM1NzM5NDI2ZjcxMDNkNjY5ZWM3YWZmMTlkMDU3ODQ1ZGE0YzhmZmQzNDgwNjQwNjAxZjI5ZjY0ZDEyZDFjMDVhNTlkZjRiZmI4ZDY3YjExZDAwMGI2ZTVlYjdiNzcxN2U4M2Q3ZGNhNTk="
}
(elixir 1.18.3) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.18.3) lib/string/chars.ex:22: String.Chars.to_string/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:43: ApiWeb.Redirect.get_hash_v2/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=0.5ms idle=1454.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.9ms queue=0.3ms idle=1455.0ms
select encrypt('{"vencimiento":"2025-04-19T15:21:04.122619Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 28ms
[error] #PID<0.669.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.668.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol String.Chars not implemented for type Jason.DecodeError (a struct)
Got value:
%Jason.DecodeError{
position: 0,
token: nil,
data: "XHg4YzQ3OTg0ZjY1YzY3NWU2ZWI5MjI4NDkzNzRkMjQ4NTUxNjVkNGZlNmIwMzM3M2Q1OGEwODkyM2E1NmVlMzlkZTUwMDg4NDg0NWFlZDEyNDE5N2ZkNzYyMzRlYzhhYWM1YjhiYzUyYmY2MTc2NDczMThiOWYyMmFkZGYwOTQ4NzY0NmQ0NmMzZmYzZmMzZWZmNzdjMjI4ZTI3MGQ4M2NlYzY0N2YyYjliYzc5NWMwY2ViMjRkNWYyZmRhZjYwMzA="
}
(elixir 1.18.3) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.18.3) lib/string/chars.ex:22: String.Chars.to_string/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:44: ApiWeb.Redirect.get_hash_v2/1
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=2.6ms idle=1620.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.6ms queue=0.5ms idle=1623.2ms
select encrypt('{"vencimiento":"2025-04-19T15:21:41.301143Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 500 in 33ms
[error] #PID<0.705.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.704.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1599
** (exit) an exception was raised:
** (CaseClauseError) no case clause matching: "XHg4YzQ3OTg0ZjY1YzY3NWU2ZWI5MjI4NDkzNzRkMjQ4NTUxNjVkNGZlNmIwMzM3M2Q1OGEwODkyM2E1NmVlMzlkMzk2MDJmZDI3MDY0Yjc3ZTZjYzg3NzMxNDY0MDJkOTZmMWUxNTk3ZDdlZTI0YTc0NDI4MjIyMTJjNGNjNTAyNmM5MmQ3MDAzZjA2MDAzN2RhOTk5MThiMDU5Njg0N2QzMjU0ODExMTUwNWQzNzk3OTA2Y2FjNWM3ZDgyYmM4OWU="
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/gethash/1
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1
[debug] QUERY OK source="study" db=0.8ms idle=1883.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 404 in 1ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=2.3ms queue=0.2ms idle=1900.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 500 in 14ms
[error] #PID<0.751.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.750.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (CaseClauseError) no case clause matching: "nil"
(api 0.1.0) lib/api_web/controllers/redirect.ex:15: ApiWeb.Redirect.index/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.8ms idle=1587.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 21ms
[error] #PID<0.886.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.885.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.886.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDckkkee-IH6qnkAACwF"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=0.7ms idle=1686.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.2ms queue=0.3ms idle=687.0ms
select encrypt('{"vencimiento":"2025-04-19T15:26:37.437550Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 2ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=1.6ms queue=1.3ms idle=1666.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.8ms queue=0.7ms idle=1693.6ms
select encrypt('{"vencimiento":"2025-04-19T15:28:55.093303Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 123ms
[info] GET /api/gethash/1
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1
[debug] QUERY OK source="study" db=2.5ms idle=1454.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 404 in 3ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=1.0ms queue=1.4ms idle=792.8ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 150ms
[error] #PID<0.604.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.603.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.604.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDck40fE_9TXuEkAAAIB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=1.2ms idle=520.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.6ms queue=1.3ms idle=553.2ms
select encrypt('{"vencimiento":"2025-04-19T15:32:23.093904Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 37ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.4ms idle=1499.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.621.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.620.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.621.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDck5Vd-xIDD9QIAAAYE"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=3.8ms idle=1916.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 5ms
[error] #PID<0.637.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.620.0>, stream id 3) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.637.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDck5eeG-YpDfjkAAAwB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[warning] Outdated tailwind version. Expected 3.3.2, got 3.2.7. Please run `mix tailwind.install` or update the version in your config files.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=1.0ms queue=1.7ms idle=1604.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 147ms
[error] #PID<0.604.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.603.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.604.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDck9ROELmbXuEkAASAB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/leonardo/desarrollo/clientes/santa_clara/api/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.2/tailwindcss-linux-x64
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/linux-x64/0.17.11
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=2.0ms queue=1.5ms idle=111.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.3ms queue=0.8ms idle=132.2ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:35:32.974147Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 24ms
[info] GET /api/gethash/1
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1
[debug] QUERY OK source="study" db=2.5ms idle=1426.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 404 in 3ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.4ms idle=1473.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.6941.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.6940.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.6941.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_action => :index, :phoenix_controller => ApiWeb.Redirect, :phoenix_router => ApiWeb.Router, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_format => "json", :phoenix_request_logger => {"request_logger", "request_logger"}, ApiWeb.Router => ["api"]}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclEpLIt7fhSw0AFgIC"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=1.7ms idle=1273.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 3ms
[error] #PID<0.6949.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.6940.0>, stream id 2) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.6949.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_action => :index, :phoenix_controller => ApiWeb.Redirect, :phoenix_router => ApiWeb.Router, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_format => "json", :phoenix_request_logger => {"request_logger", "request_logger"}, ApiWeb.Router => ["api"]}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclEv4SJtEsOOIAE-YB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=1.8ms idle=378.8ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 3ms
[error] #PID<0.6958.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.6957.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.6958.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_action => :index, :phoenix_controller => ApiWeb.Redirect, :phoenix_router => ApiWeb.Router, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_format => "json", :phoenix_request_logger => {"request_logger", "request_logger"}, ApiWeb.Router => ["api"]}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclE3uK7ogHcd0AF5AD"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.3ms idle=1973.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.6974.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.6957.0>, stream id 3) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.6974.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_action => :index, :phoenix_controller => ApiWeb.Redirect, :phoenix_router => ApiWeb.Router, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_format => "json", :phoenix_request_logger => {"request_logger", "request_logger"}, ApiWeb.Router => ["api"]}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclE9qbSqKk_54AE_QB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/redirect (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1566
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1566"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1566"
[debug] QUERY OK source="study" db=0.5ms idle=1336.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1566"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.6991.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.6982.0>, stream id 2) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1566
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.6991.0>, params: %{"accession" => "1566"}, path_info: ["api", "redirect", "1566"], path_params: %{"accession" => "1566"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_action => :index, :phoenix_controller => ApiWeb.Redirect, :phoenix_router => ApiWeb.Router, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_format => "json", :phoenix_request_logger => {"request_logger", "request_logger"}, ApiWeb.Router => ["api"]}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1566", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclFgjPlomkfQIAFAQB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=0.5ms idle=176.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.5ms queue=0.2ms idle=177.2ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-19T15:36:01.038551Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 2ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/1566
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1566"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1566"
[debug] QUERY OK source="study" db=1.6ms queue=1.3ms idle=1522.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1566"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 141ms
[info] Sent 200 in 180ms
[error] Ranch listener ApiWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/3 at #PID<0.603.0> exit with reason: {:function_clause,
[
{:cowboy_http,
:commands,
[
{:state,
#PID<0.397.0>,
ApiWeb.Endpoint.HTTP,
#Port<0.22>,
:ranch_tcp,
:undefined,
%{
env: %{
dispatch: [
{:_,
[],
[
{:_,
[],
Plug.Cowboy.Handler,
{Phoenix.Endpoint.SyncCodeReloadPlug,
{ApiWeb.Endpoint,
[]}}}
]}
]
},
stream_handlers: [:cowboy_telemetry_h,
:cowboy_stream_h]
},
"",
%{},
{{127,
0,
0,
1},
38534},
{{127,
0,
0,
1},
4001},
:undefined,
#Reference<0.4074011394.325058561.85819>,
true,
2,
{:ps_request_line,
0},
65535,
false,
0,
1,
:done,
1000,
[
{:stream,
1,
{:cowboy_telemetry_h,
{:state,
{:cowboy_stream_h,
{:state,
:undefined,
ApiWeb.Endpoint.HTTP,
#PID<0.604.0>,
:undefined,
:undefined,
:undefined,
:undefined,
0,
:nofin,
...}},
#Function<0.42978180/1 in :cowboy_telemetry_h.metrics_callback>,
:undefined,
%{
pid: #PID<0.603.0>,
port: 4001,
scheme: "http",
version: :"HTTP/1.1",
path: "/api/redirect/1566",
host: "127.0.0.1",
peer: {{127,
...},
38534},
ref: ApiWeb.Endpoint.HTTP,
cert: :undefined,
...
},
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:05 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclM_QqlgzXuEkAAAIC"
},
ApiWeb.Endpoint.HTTP,
-576460733788006740,
:undefined,
:undefined,
:undefined,
-576460733402540388,
-576460733402540388,
...}},
"GET",
:"HTTP/1.1",
:undefined,
:undefined,
0,
[]}
],
[
{:child,
#PID<0.604.0>,
1,
5000,
:undefined}
]},
1,
[
{:response,
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:05 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclM_QqlgzXuEkAAAIC"
},
"Error 404"}
]
],
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 1040
]},
{:cowboy_http,
:loop,
1,
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 279
]},
{:proc_lib,
:init_p_do_apply,
3,
[
file: ~c"proc_lib.erl",
line: 329
]}
]}
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=3.9ms idle=1762.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.6ms queue=1.0ms idle=1796.1ms
select encrypt('{"vencimiento":"2025-04-19T15:38:10.085721Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 39ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=2.3ms idle=1432.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 5ms
[info] Sent 200 in 6ms
[error] Ranch listener ApiWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/3 at #PID<0.612.0> exit with reason: {:function_clause,
[
{:cowboy_http,
:commands,
[
{:state,
#PID<0.398.0>,
ApiWeb.Endpoint.HTTP,
#Port<0.24>,
:ranch_tcp,
:undefined,
%{
env: %{
dispatch: [
{:_,
[],
[
{:_,
[],
Plug.Cowboy.Handler,
{Phoenix.Endpoint.SyncCodeReloadPlug,
{ApiWeb.Endpoint,
[]}}}
]}
]
},
stream_handlers: [:cowboy_telemetry_h,
:cowboy_stream_h]
},
"",
%{},
{{127,
0,
0,
1},
38538},
{{127,
0,
0,
1},
4001},
:undefined,
#Reference<0.4074011394.325058561.86510>,
true,
3,
{:ps_request_line,
0},
65535,
false,
0,
2,
:done,
1000,
[
{:stream,
2,
{:cowboy_telemetry_h,
{:state,
{:cowboy_stream_h,
{:state,
:undefined,
ApiWeb.Endpoint.HTTP,
#PID<0.621.0>,
:undefined,
:undefined,
:undefined,
:undefined,
0,
:nofin,
...}},
#Function<0.42978180/1 in :cowboy_telemetry_h.metrics_callback>,
:undefined,
%{
pid: #PID<0.612.0>,
port: 4001,
scheme: "http",
version: :"HTTP/1.1",
path: "/api/redirect/1",
host: "127.0.0.1",
peer: {{127,
...},
38538},
ref: ApiWeb.Endpoint.HTTP,
cert: :undefined,
...
},
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:12 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclNZgRgJvD9QIAALAB"
},
ApiWeb.Endpoint.HTTP,
-576460726555305035,
:undefined,
:undefined,
:undefined,
-576460726538133958,
-576460726538133958,
...}},
"GET",
:"HTTP/1.1",
:undefined,
:undefined,
0,
[]}
],
[
{:child,
#PID<0.621.0>,
2,
5000,
:undefined}
]},
2,
[
{:response,
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:12 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclNZgRgJvD9QIAALAB"
},
"Error 404"}
]
],
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 1040
]},
{:cowboy_http,
:loop,
1,
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 279
]},
{:proc_lib,
:init_p_do_apply,
3,
[
file: ~c"proc_lib.erl",
line: 329
]}
]}
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=3.6ms idle=1238.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.6ms queue=0.5ms idle=1242.5ms
select encrypt('{"vencimiento":"2025-04-19T15:38:23.558149Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 6ms
[info] GET /api/redirect/111
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "111"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "111"
[debug] QUERY OK source="study" db=1.8ms idle=1656.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["111"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 3ms
[info] Sent 200 in 3ms
[error] Ranch listener ApiWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/3 at #PID<0.638.0> exit with reason: {:function_clause,
[
{:cowboy_http,
:commands,
[
{:state,
#PID<0.400.0>,
ApiWeb.Endpoint.HTTP,
#Port<0.29>,
:ranch_tcp,
:undefined,
%{
env: %{
dispatch: [
{:_,
[],
[
{:_,
[],
Plug.Cowboy.Handler,
{Phoenix.Endpoint.SyncCodeReloadPlug,
{ApiWeb.Endpoint,
[]}}}
]}
]
},
stream_handlers: [:cowboy_telemetry_h,
:cowboy_stream_h]
},
"",
%{},
{{127,
0,
0,
1},
36918},
{{127,
0,
0,
1},
4001},
:undefined,
#Reference<0.4074011394.325058561.87250>,
true,
2,
{:ps_request_line,
0},
65535,
false,
0,
1,
:done,
1000,
[
{:stream,
1,
{:cowboy_telemetry_h,
{:state,
{:cowboy_stream_h,
{:state,
:undefined,
ApiWeb.Endpoint.HTTP,
#PID<0.639.0>,
:undefined,
:undefined,
:undefined,
:undefined,
0,
:nofin,
...}},
#Function<0.42978180/1 in :cowboy_telemetry_h.metrics_callback>,
:undefined,
%{
pid: #PID<0.638.0>,
port: 4001,
scheme: "http",
version: :"HTTP/1.1",
path: "/api/redirect/111",
host: "127.0.0.1",
peer: {{127,
...},
36918},
ref: ApiWeb.Endpoint.HTTP,
cert: :undefined,
...
},
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:28 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclOV9ahI-ZttoAAMAB"
},
ApiWeb.Endpoint.HTTP,
-576460710329046400,
:undefined,
:undefined,
:undefined,
-576460710312332504,
-576460710312332504,
...}},
"GET",
:"HTTP/1.1",
:undefined,
:undefined,
0,
[]}
],
[
{:child,
#PID<0.639.0>,
1,
5000,
:undefined}
]},
1,
[
{:response,
"200 OK",
%{
"cache-control" => "max-age=0, private, must-revalidate",
"content-length" => "9",
"content-type" => "text/plain; charset=utf-8",
"date" => "Thu, 17 Apr 2025 15:38:28 GMT",
"server" => "Cowboy",
"x-request-id" => "GDclOV9ahI-ZttoAAMAB"
},
"Error 404"}
]
],
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 1040
]},
{:cowboy_http,
:loop,
1,
[
file: ~c"/home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_http.erl",
line: 279
]},
{:proc_lib,
:init_p_do_apply,
3,
[
file: ~c"proc_lib.erl",
line: 329
]}
]}
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=0.5ms idle=1548.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.8ms queue=0.5ms idle=1548.9ms
select encrypt('{"vencimiento":"2025-04-19T15:38:34.867515Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 3ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=1.0ms queue=1.2ms idle=1352.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.7ms queue=1.0ms idle=1381.6ms
select encrypt('{"vencimiento":"2025-04-19T15:39:25.818788Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 180ms
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=1.1ms idle=1018.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.6ms queue=0.3ms idle=1019.8ms
select encrypt('{"vencimiento":"2025-04-19T15:39:35.480294Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 3ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.4ms idle=1005.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 2ms
[error] #PID<0.622.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.621.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.622.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclTFizxWwJv6MAAAID"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=2.6ms idle=1806.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 23ms
[error] #PID<0.670.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.669.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.670.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclZepLZ7esLnYAAA4C"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[debug] QUERY OK source="study" db=2.3ms idle=1533.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.2ms queue=0.3ms idle=535.4ms
select encrypt('{"vencimiento":"2025-04-19T15:41:44.034782Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 4ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=1.9ms idle=145.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 3ms
[error] #PID<0.691.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.690.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.691.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclZ6Ex6w1qUnkAABID"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.5ms idle=1224.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.708.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.707.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.708.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclZ-GIIkR43hoAAB4D"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.8ms idle=1619.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 3ms
[error] #PID<0.725.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.724.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.725.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclaAG8Xgs2QN4AAUgB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.4ms idle=712.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.742.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.741.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.742.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclaAwKIuLdZNoAAVYB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.6ms idle=364.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 2ms
[error] #PID<0.759.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.758.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.759.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclaBeZDczTQngAAV4B"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1"
[debug] QUERY OK source="study" db=0.6ms idle=411.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.775.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.758.0>, stream id 3) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.775.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclaCSYJKJrGQQAAWAB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "2"
[debug] QUERY OK source="study" db=0.4ms idle=393.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["2"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 1ms
[error] #PID<0.783.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.758.0>, stream id 4) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/2
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.783.0>, params: %{"accession" => "2"}, path_info: ["api", "redirect", "2"], path_params: %{"accession" => "2"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/2", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclaJ5nnGY8J2oAAWYB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "2"
[info] Sent 200 in 114ms
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "2"
[info] Sent 200 in 963µs
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[info] Sent 200 in 864µs
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[info] Sent 200 in 939µs
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros mail: "1599"
[info] Sent 200 in 1ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/gethash/1
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1
[debug] QUERY OK source="study" db=1.0ms queue=1.1ms idle=873.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 404 in 130ms
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=1.8ms idle=6.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=1.6ms queue=0.6ms idle=36.2ms
select encrypt('{"vencimiento":"2025-04-19T15:46:08.384681Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 35ms
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=3.2ms idle=61.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.8ms queue=0.5ms idle=64.9ms
select encrypt('{"vencimiento":"2025-04-19T15:46:26.439328Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 25ms
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "2"
[debug] QUERY OK source="study" db=1.0ms idle=764.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["2"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[info] Sent 200 in 2ms
[error] #PID<0.630.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.621.0>, stream id 2) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/2
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.630.0>, params: %{"accession" => "2"}, path_info: ["api", "redirect", "2"], path_params: %{"accession" => "2"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/2", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclqaKlxgByocYAAMIB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=1.9ms idle=1193.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:37
[debug] QUERY OK db=0.7ms queue=0.2ms idle=1195.3ms
select encrypt('{"vencimiento":"2025-04-19T15:47:11.579213Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 3ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/gethash/1599
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1599
[debug] QUERY OK source="study" db=1.0ms queue=1.3ms idle=181.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[debug] QUERY OK db=0.9ms queue=0.6ms idle=169.3ms
select encrypt('{"vencimiento":"2025-04-19T15:48:14.889091Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 200 in 156ms
[info] GET /api/gethash/1
[debug] Processing with ApiWeb.GetHash.index/2
Parameters: %{"study" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Accession get hash -> 1
[debug] QUERY OK source="study" db=2.7ms idle=1391.2ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 404 in 4ms
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "2"
[debug] QUERY OK source="study" db=0.7ms idle=1615.6ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["2"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 23ms
[error] #PID<0.622.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.621.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/2
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.622.0>, params: %{"accession" => "2"}, path_info: ["api", "redirect", "2"], path_params: %{"accession" => "2"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_api_key" => "SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"cookie", "_api_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYenZhWDNRc242ajVydXFEVUtlZkI0a0NO.u4wYUsiSKfptx0c0L1H_nOhZEQ24AbmVmcApfoozbfI"}, {"host", "127.0.0.1:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/2", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDclw09HyjcJv6MAAS4C"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=2.4ms idle=420.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[debug] QUERY OK db=0.1ms queue=0.1ms idle=422.8ms
select encrypt('{"vencimiento":"2025-04-19T15:48:27.238655Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 4ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[debug] Tzdata polling shows the loaded tz database is up to date.
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 408ms
[error] #PID<0.612.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.611.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[info] GET /favicon.ico
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /favicon.ico (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1"
[debug] QUERY OK source="study" db=11.8ms queue=15.8ms idle=1469.8ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 73ms
[error] #PID<0.638.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.637.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.638.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"host", "localhost:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDkKp_3D8iIhRhgAABIB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/2
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "2"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "2"
[debug] QUERY OK source="study" db=2.7ms idle=1271.0ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["2"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 4ms
[error] #PID<0.646.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.637.0>, stream id 2) terminated
Server: localhost:4001 (http)
Request: GET /api/redirect/2
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.646.0>, params: %{"accession" => "2"}, path_info: ["api", "redirect", "2"], path_params: %{"accession" => "2"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"host", "localhost:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/2", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDkKqOMNrJcVjFQAABwB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/4
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "4"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "4"
[debug] QUERY OK source="study" db=2.0ms queue=0.1ms idle=1450.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["4"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 4ms
[error] #PID<0.654.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.637.0>, stream id 3) terminated
Server: localhost:4001 (http)
Request: GET /api/redirect/4
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.654.0>, params: %{"accession" => "4"}, path_info: ["api", "redirect", "4"], path_params: %{"accession" => "4"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"host", "localhost:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/4", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDkKqWTfxU81JvIAACQB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/3
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "3"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "3"
[debug] QUERY OK source="study" db=0.6ms idle=936.9ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["3"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 2ms
[error] #PID<0.662.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.637.0>, stream id 4) terminated
Server: localhost:4001 (http)
Request: GET /api/redirect/3
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.662.0>, params: %{"accession" => "3"}, path_info: ["api", "redirect", "3"], path_params: %{"accession" => "3"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"host", "localhost:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/3", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GDkKqflHQp21KKMAACwB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=3.9ms idle=181.4ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[debug] QUERY OK db=9.1ms queue=2.5ms idle=217.8ms
select encrypt('{"idstudy":457,"patientid":"30223178","vencimiento":"2025-04-25T19:54:22.989953Z"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 49ms
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 30ms
[error] #PID<0.680.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.679.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 306ms
[error] #PID<0.617.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 297ms
[error] #PID<0.617.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 16ms
[error] #PID<0.633.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 3) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 304ms
[error] #PID<0.617.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: :outline
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 327ms
[error] #PID<0.617.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) type prop is required if default type is not configured.
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:34: Heroicons.LiveView.type_to_opts/1
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:15: Heroicons.LiveView.icon/1
(phoenix_live_view 0.20.17) lib/phoenix_live_view/tag_engine.ex:92: Phoenix.LiveView.TagEngine.component/3
(api 0.1.0) lib/api_web/live/emailer_live/index.html.heex:2: anonymous fn/2 in ApiWeb.EmailerLive.Index.render/1
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:391: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 289ms
[error] #PID<0.618.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.617.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 278ms
[error] #PID<0.618.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.617.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 500 in 275ms
[error] #PID<0.617.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.616.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/mailer
** (exit) an exception was raised:
** (ArgumentError) expected type to be one of [], got: "outline"
(ex_heroicons 2.0.0) lib/heroicons.ex:118: Heroicons.icon/2
(ex_heroicons 2.0.0) lib/heroicons/live_view.ex:26: anonymous fn/2 in Heroicons.LiveView.icon/1
(api 0.1.0) /home/trini/api_hash/api-v2/lib/api_web/live/emailer_live/index.html.heex:2: ApiWeb.EmailerLive.Index.render/1
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:532: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/7
(elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:389: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.20.17) lib/phoenix_live_view/diff.ex:136: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:249: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.20.17) lib/phoenix_live_view/static.ex:132: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.20.17) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 217ms
[info] GET /api/phoenix/live_reload/frame
[info] CONNECTED TO Phoenix.LiveView.Socket in 18µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "FDZ-FQIPFCxOVyB6EDwiBVMmVjwfKRhLzpKPNWZI89eIZVCKjqoyQBwf", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "nF5ELXNevnE3JjaN9W9ENko-"}
[debug] Replied in 422µs
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=6.2ms queue=2.1ms idle=678.0ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=4.3ms queue=4.8ms idle=698.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 97ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [%{"field" => "sent", "type" => "=", "value" => true}], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.1ms queue=0.7ms idle=1081.5ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" WHERE ((e0."sent" = $1) AND $2) ORDER BY e0."idstudy" DESC LIMIT $3 OFFSET $4 [true, true, 26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.4ms queue=1.0ms idle=1083.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" WHERE ((se0."sent" = $1) AND $2) ORDER BY se0."idstudy" DESC) AS s0 [true, true]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 19ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=2.0ms idle=1925.7ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.9ms idle=1928.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 4ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [%{"field" => "hasreport", "type" => "=", "value" => true}], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.7ms queue=1.5ms idle=1128.2ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" WHERE ((e0."hasreport" = $1) AND $2) ORDER BY e0."idstudy" DESC LIMIT $3 OFFSET $4 [true, true, 26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.2ms queue=1.4ms idle=1132.2ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" WHERE ((se0."hasreport" = $1) AND $2) ORDER BY se0."idstudy" DESC) AS s0 [true, true]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 7ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [%{"field" => "hasreport", "type" => "=", "value" => false}], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=2.2ms idle=1653.3ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" WHERE ((e0."hasreport" = $1) AND $2) ORDER BY e0."idstudy" DESC LIMIT $3 OFFSET $4 [false, true, 26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=2.3ms idle=1655.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" WHERE ((se0."hasreport" = $1) AND $2) ORDER BY se0."idstudy" DESC) AS s0 [false, true]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 5ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[debug] Tzdata polling shows the loaded tz database is up to date.
[info] GET /
[debug] Processing with ApiWeb.PageController.home/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 302 in 168ms
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 200 in 127ms
[info] GET /api/phoenix/live_reload/frame
[info] CONNECTED TO Phoenix.LiveView.Socket in 15µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "NRRHaAwdETAiHnshAgdXCkBTd2wJeR9MTZq-XZIcmxNtSVe8y08UjKXu", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "aN6ETGXSOf5UQQ229cO9c2G9"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 3ms
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 861µs
[info] CONNECTED TO Phoenix.LiveView.Socket in 18µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "NRRHaAwdETAiHnshAgdXCkBTd2wJeR9MTZq-XZIcmxNtSVe8y08UjKXu", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 36µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "TB9GCRkhAT57HE1jC2JQZUkMJGxXbQ9q-QpLMfYm4zx6Z3bWpokU4_HS", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "aN6ETGXSOf5UQQ229cO9c2G9"}
[debug] Replied in 127µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=18.1ms queue=17.9ms idle=1791.4ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=2.6ms queue=4.8ms idle=1843.5ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 122ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 175µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.9ms queue=0.1ms idle=1267.0ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=2.1ms idle=1269.2ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 4ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 151µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=2.4ms idle=1403.3ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=3.0ms idle=1406.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 6ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [%{"field" => "patientemail", "type" => "like", "value" => "k"}], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.7ms queue=1.3ms idle=767.0ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" WHERE ((e0."patientemail" ILIKE $1) AND $2) ORDER BY e0."idstudy" DESC LIMIT $3 OFFSET $4 ["k%", true, 26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.8ms queue=1.5ms idle=770.2ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" WHERE ((se0."patientemail" ILIKE $1) AND $2) ORDER BY se0."idstudy" DESC) AS s0 ["k%", true]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 21ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [%{"field" => "patientemail", "type" => "like", "value" => "l"}], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.2ms idle=409.3ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" WHERE ((e0."patientemail" ILIKE $1) AND $2) ORDER BY e0."idstudy" DESC LIMIT $3 OFFSET $4 ["l%", true, 26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.8ms idle=410.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" WHERE ((se0."patientemail" ILIKE $1) AND $2) ORDER BY se0."idstudy" DESC) AS s0 ["l%", true]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 4ms
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=3.5ms idle=1384.8ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.7ms idle=1388.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 5ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 320µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.1ms idle=1140.1ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.3ms queue=0.1ms idle=1141.7ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 3ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 144µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.2ms queue=0.1ms idle=1246.9ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.8ms idle=1248.5ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 3ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 47µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "TB9GCRkhAT57HE1jC2JQZUkMJGxXbQ9q-QpLMfYm4zx6Z3bWpokU4_HS", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://localhost:4001/api/assets/app.css", "1" => "http://localhost:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "aN6ETGXSOf5UQQ229cO9c2G9"}
[debug] Replied in 160µs
[info] GET /
[debug] Processing with ApiWeb.PageController.home/2
Parameters: %{}
Pipelines: [:browser]
[debug] Plug.Session could not verify incoming session cookie. This may happen when the session settings change or a stale cookie is sent.
[info] Sent 302 in 1ms
[info] GET /api/pacientes
[debug] Processing with ApiWeb.IndexLive.Elixir.ApiWeb.IndexLive/2
Parameters: %{}
Pipelines: [:browser]
[debug] Plug.Session could not verify incoming session cookie. This may happen when the session settings change or a stale cookie is sent.
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] Sent 200 in 1ms
[info] GET /api/phoenix/live_reload/frame
[info] CONNECTED TO Phoenix.LiveView.Socket in 22µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "elYaCQcCXEIbexkADREpLT4hKSBhbhJA9fizhHd2t2MttdlrtLap47V6", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.IndexLive
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "C0ssoJ8poITtyuE_JmHPUYDv"}
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] Replied in 2ms
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 438µs
[info] CONNECTED TO Phoenix.LiveView.Socket in 20µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "elYaCQcCXEIbexkADREpLT4hKSBhbhJA9fizhHd2t2MttdlrtLap47V6", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 38µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "MVIfRwcVajYtZDxFNjQxMDohIyplKh0Vrbl4h_RFB-h1OAtopLkz0sYc", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "C0ssoJ8poITtyuE_JmHPUYDv"}
[debug] Replied in 99µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=3.0ms idle=287.9ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=5.1ms idle=289.5ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 9ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 192µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=2.5ms idle=1876.1ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=2.7ms idle=1879.2ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 6ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 213µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.3ms idle=1802.9ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.5ms idle=1804.5ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 3ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 127µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=1.2ms idle=1631.4ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=7.3ms idle=1632.9ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 9ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 217µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.9ms idle=1344.0ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.8ms idle=1345.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 2ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 123µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.9ms idle=1486.2ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.8ms idle=1487.4ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 2ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 264µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.6ms queue=0.1ms idle=1049.2ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.2ms idle=1050.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 1ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 137µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.8ms idle=775.5ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.3ms idle=775.4ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 1ms
[debug] HANDLE EVENT "update_tabulator" in ApiWeb.EmailerLive.Index
Parameters: %{"value" => ""}
[debug] Replied in 234µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.9ms idle=880.8ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=0.3ms idle=882.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 1ms
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 1ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 33µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "MVIfRwcVajYtZDxFNjQxMDohIyplKh0Vrbl4h_RFB-h1OAtopLkz0sYc", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 25µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "MkEcIRd4TToocSc5HUIqaT0gfTcCPXwgqqoRx2uJG8sMd7o6wM5gWd8V", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "C0ssoJ8poITtyuE_JmHPUYDv"}
[debug] Replied in 297µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=2.2ms idle=1718.4ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=1.0ms idle=1721.0ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 4ms
[info] GET /api/mailer
[debug] Processing with ApiWeb.EmailerLive.Index.Elixir.ApiWeb.EmailerLive.Index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 1ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 28µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "MkEcIRd4TToocSc5HUIqaT0gfTcCPXwgqqoRx2uJG8sMd7o6wM5gWd8V", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[info] GET /api/phoenix/live_reload/frame
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /api/phoenix/live_reload/frame (ApiWeb.Router)
(api 0.1.0) deps/phoenix/lib/phoenix/router.ex:541: ApiWeb.Router.call/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] CONNECTED TO Phoenix.LiveView.Socket in 38µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{"_csrf_token" => "OWJeJywPaBkNHAEnEwwuZjtcLQgZHC07zR-TCEPibUUSjyk9q1eXLEiM", "_live_referer" => "undefined", "_mounts" => "0", "_track_static" => %{"0" => "http://127.0.0.1:4001/api/assets/app.css", "1" => "http://127.0.0.1:4001/api/assets/app.js"}, "vsn" => "2.0.0"}
[debug] MOUNT ApiWeb.EmailerLive.Index
Parameters: :not_mounted_at_router
Session: %{"_csrf_token" => "C0ssoJ8poITtyuE_JmHPUYDv"}
[debug] Replied in 157µs
[debug] HANDLE EVENT "fetch_data" in ApiWeb.EmailerLive.Index
Parameters: %{"filter" => [], "page" => 1, "size" => 14, "sort" => []}
[debug] QUERY OK source="emailstosend" db=0.6ms idle=940.4ms
SELECT e0."idemailtosend", e0."idstudy", e0."patientemail", e0."sent", e0."hasreport", e0."retries", e0."errormsg", e0."forcereprocess", e0."sentdatetime", s1."accessionnumber", p2."patientname", p2."patientid", s1."studydate" FROM "emailstosend" AS e0 INNER JOIN "study" AS s1 ON s1."idstudy" = e0."idstudy" INNER JOIN "patient" AS p2 ON p2."idpatient" = s1."idpatient" ORDER BY e0."idstudy" DESC LIMIT $1 OFFSET $2 [26, 0]
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:22
[debug] QUERY OK db=7.5ms idle=941.3ms
SELECT count('*') FROM (SELECT se0."idemailtosend" AS "idemailtosend", se0."idstudy" AS "idstudy", se0."patientemail" AS "patientemail", se0."sent" AS "sent", se0."hasreport" AS "hasreport", se0."retries" AS "retries", se0."errormsg" AS "errormsg", se0."forcereprocess" AS "forcereprocess", se0."sentdatetime" AS "sentdatetime", ss1."accessionnumber" AS "accessionnumber", sp2."patientname" AS "patientname", sp2."patientid" AS "patientid", ss1."studydate" AS "studydate" FROM "emailstosend" AS se0 INNER JOIN "study" AS ss1 ON ss1."idstudy" = se0."idstudy" INNER JOIN "patient" AS sp2 ON sp2."idpatient" = ss1."idpatient" ORDER BY se0."idstudy" DESC) AS s0 []
↳ Api.Pagination.page/3, at: lib/api/pagination.ex:25
[debug] Replied in 9ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[debug] Tzdata polling for update.
[debug] Tzdata polling shows the loaded tz database is up to date.
[info] GET /api/redirect/1556
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1556"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1556"
[debug] QUERY OK source="study" db=22.2ms queue=16.1ms idle=1973.5ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1556"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 205ms
[error] #PID<0.627.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.626.0>, stream id 1) terminated
Server: localhost:4001 (http)
Request: GET /api/redirect/1556
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "localhost", method: "GET", owner: #PID<0.627.0>, params: %{"accession" => "1556"}, path_info: ["api", "redirect", "1556"], path_params: %{"accession" => "1556"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_endpoint => ApiWeb.Endpoint, :phoenix_format => "json", :phoenix_router => ApiWeb.Router, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"connection", "keep-alive"}, {"host", "localhost:4001"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "none"}, {"sec-fetch-user", "?1"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1556", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GD0B346DLA445GkAAAQE"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=6.9ms idle=715.7ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[debug] QUERY OK db=24.9ms queue=4.7ms idle=768.2ms
select encrypt('{"vencimiento":"2025-05-08T17:58:43.098022Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 84ms
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Not able to start file_system worker, reason: {:error, :fs_inotify_bootstrap_error}
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
[info] Running ApiWeb.Endpoint with cowboy 2.13.0 at 127.0.0.1:4001 (http)
[info] Access ApiWeb.Endpoint at http://127.0.0.1:4001
[info] GET /api/redirect/1599
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1599"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1599"
[debug] QUERY OK source="study" db=2.3ms queue=2.0ms idle=740.1ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1599"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[debug] QUERY OK db=3.5ms queue=1.4ms idle=779.6ms
select encrypt('{"vencimiento":"2025-05-08T17:59:40.912986Z","idstudy":457,"patientid":"30223178"}'::bytea, '1nf0rm3', 'aes')::text []
[info] Sent 302 in 219ms
[info] GET /api/redirect/1
[debug] Processing with ApiWeb.Redirect.index/2
Parameters: %{"accession" => "1"}
Pipelines: [:api]
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[debug] .env file path: /home/trini/api_hash/api-v2/.env
[info] parametros: "1"
[debug] QUERY OK source="study" db=4.7ms idle=1008.3ms
SELECT s0."idstudy", p1."patientid" FROM "study" AS s0 INNER JOIN "patient" AS p1 ON p1."idpatient" = s0."idpatient" WHERE (s0."accessionnumber" = $1) ["1"]
↳ ApiWeb.GetHash.get_hash/1, at: lib/api_web/controllers/get_hash.ex:65
[info] Sent 200 in 7ms
[error] #PID<0.614.0> running Phoenix.Endpoint.SyncCodeReloadPlug (connection #PID<0.613.0>, stream id 1) terminated
Server: 127.0.0.1:4001 (http)
Request: GET /api/redirect/1
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.HTML.html_escape/1
(plug 1.17.0) lib/plug/html.ex:19: Plug.HTML.html_escape(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{}, halted: false, host: "127.0.0.1", method: "GET", owner: #PID<0.614.0>, params: %{"accession" => "1"}, path_info: ["api", "redirect", "1"], path_params: %{"accession" => "1"}, port: 4001, private: %{:phoenix_view => %{"html" => ApiWeb.RedirectHTML, "json" => ApiWeb.RedirectJSON}, ApiWeb.Router => ["api"], :phoenix_endpoint => ApiWeb.Endpoint, :plug_session_fetch => #Function<1.49469887/1 in Plug.Session.fetch_session/1>, :before_send => [#Function<0.106864063/1 in Plug.Telemetry.call/2>, #Function<1.3561897/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_request_logger => {"request_logger", "request_logger"}, :phoenix_router => ApiWeb.Router, :phoenix_action => :index, :phoenix_layout => %{"html" => {ApiWeb.Layouts, :app}}, :phoenix_controller => ApiWeb.Redirect, :phoenix_format => "json"}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{}, req_headers: [{"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {"accept-encoding", "gzip, deflate, br, zstd"}, {"accept-language", "es-AR,es;q=0.8,en-US;q=0.5,en;q=0.3"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"dnt", "1"}, {"host", "127.0.0.1:4001"}, {"pragma", "no-cache"}, {"priority", "u=0, i"}, {"sec-fetch-dest", "document"}, {"sec-fetch-mode", "navigate"}, {"sec-fetch-site", "cross-site"}, {"upgrade-insecure-requests", "1"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"}], request_path: "/api/redirect/1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "text/plain; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "GD0CIIR82rsSPmoAASoB"}], scheme: :http, script_name: ["api"], secret_key_base: :..., state: :sent, status: 200})
(phoenix 1.7.21) lib/phoenix/controller.ex:491: Phoenix.Controller.redirect/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.action/2
(api 0.1.0) lib/api_web/controllers/redirect.ex:1: ApiWeb.Redirect.phoenix_controller_pipeline/2
(phoenix 1.7.21) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.plug_builder_call/2
(api 0.1.0) deps/plug/lib/plug/debugger.ex:155: ApiWeb.Endpoint."call (overridable 3)"/2
(api 0.1.0) lib/api_web/endpoint.ex:1: ApiWeb.Endpoint.call/2
(phoenix 1.7.21) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
(plug_cowboy 2.7.3) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:310: :cowboy_stream_h.execute/3
(cowboy 2.13.0) /home/trini/api_hash/api-v2/deps/cowboy/src/cowboy_stream_h.erl:299: :cowboy_stream_h.request_process/3
(stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3