Aircloak / aircloak

This repository contains the Aircloak Air frontend as well as the code for our Cloak query and anonymization platform
2 stars 0 forks source link

User channel crashes if opening an offline data source in browser #4861

Closed edongashi closed 3 years ago

edongashi commented 3 years ago
[error] GenServer #PID<0.949.0> terminating
** (MatchError) no match of right hand side value: {:error, :not_connected}
    (air 21.1.0) lib/air_web/socket/frontend/user_channel.ex:116: AirWeb.Socket.Frontend.UserChannel.handle_in/3
    (phoenix 1.5.6) lib/phoenix/channel/server.ex:316: Phoenix.Channel.Server.handle_info/2
    (stdlib 3.13.2) gen_server.erl:680: :gen_server.try_dispatch/4
    (stdlib 3.13.2) gen_server.erl:756: :gen_server.handle_msg/6
    (stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: %Phoenix.Socket.Message{event: "type_check", join_ref: "9", payload: %{"data_source" => "cloak_postgres_native", "query" => "explain select count(*) from integers i1 inner join integers i2 on i1.user_id = i2.user_id inner join integers i3 on i1.user_id = i3.user_id"}, ref: "11", topic: "type_check:2"}
State: %Phoenix.Socket{assigns: %{user: %Air.Schemas.User{id: 2}}, channel: AirWeb.Socket.Frontend.UserChannel, channel_pid: #PID<0.949.0>, endpoint: AirWeb.Endpoint, handler: AirWeb.Socket.Frontend, id: "user:2", join_ref: "9", joined: true, private: %{log_handle_in: :debug, log_join: :info}, pubsub_server: AirWeb.PubSub, ref: nil, serializer: Phoenix.Socket.V2.JSONSerializer, topic: "type_check:2", transport: :websocket, transport_pid: #PID<0.930.0>}