[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, 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, 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