Skip to content

no function clause matching errors #82

@brianmay

Description

@brianmay

I seem to be getting a lot of errors such as

phonedb-57c69655fc-mfdj8 phonedb 02:40:08.704 [info] Stopped LDAP
phonedb-57c69655fc-mfdj8 phonedb 02:40:08.705 [error] GenServer Paddle terminating
phonedb-57c69655fc-mfdj8 phonedb ** (FunctionClauseError) no function clause matching in Paddle.Parsing.clean_eldap_search_results/2
phonedb-57c69655fc-mfdj8 phonedb     (paddle 0.1.4) lib/paddle/parsing.ex:148: Paddle.Parsing.clean_eldap_search_results({:ok, {:eldap_search
_result, [], [], :asn1_NOVALUE}}, 'dc=pri')
phonedb-57c69655fc-mfdj8 phonedb     (paddle 0.1.4) lib/paddle.ex:204: Paddle.handle_call/3
phonedb-57c69655fc-mfdj8 phonedb     (stdlib 3.17.1) gen_server.erl:721: :gen_server.try_handle_call/4
phonedb-57c69655fc-mfdj8 phonedb     (stdlib 3.17.1) gen_server.erl:750: :gen_server.handle_msg/6
phonedb-57c69655fc-mfdj8 phonedb     (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
phonedb-57c69655fc-mfdj8 phonedb Last message (from #PID<0.9786.10>): {:get, {:and, [equalityMatch: {:AttributeValueAssertion, 'telephoneNumb
er', '0438539906'}, equalityMatch: {:AttributeValueAssertion, 'objectClass', 'person'}]}, "ou=people", :base}
phonedb-57c69655fc-mfdj8 phonedb 02:40:08.708 [info] Connecting to ldap://['ldap.pri']:389
phonedb-57c69655fc-mfdj8 phonedb 02:40:08.709 [error] #PID<0.9786.10> running PhoneDbWeb.Endpoint (connection #PID<0.9787.10>, stream id 1) t
erminated
phonedb-57c69655fc-mfdj8 phonedb Server: phonedb.linuxpenguins.xyz:80 (http)
phonedb-57c69655fc-mfdj8 phonedb Request: POST /api/incoming_call/
phonedb-57c69655fc-mfdj8 phonedb ** (exit) exited in: GenServer.call(Paddle, {:get, {:and, [equalityMatch: {:AttributeValueAssertion, 'telephoneNumber', '0438539906'}, equalityMatch: {:AttributeValueAssertion, 'objectClass', 'person'}]}, "ou=people", :base}, 5000)
phonedb-57c69655fc-mfdj8 phonedb     ** (EXIT) an exception was raised:
phonedb-57c69655fc-mfdj8 phonedb         ** (FunctionClauseError) no function clause matching in Paddle.Parsing.clean_eldap_search_results/2
phonedb-57c69655fc-mfdj8 phonedb             (paddle 0.1.4) lib/paddle/parsing.ex:148: Paddle.Parsing.clean_eldap_search_results({:ok, {:eldap_search_result, [], [], :asn1_NOVALUE}}, 'dc=pri')
phonedb-57c69655fc-mfdj8 phonedb             (paddle 0.1.4) lib/paddle.ex:204: Paddle.handle_call/3
phonedb-57c69655fc-mfdj8 phonedb             (stdlib 3.17.1) gen_server.erl:721: :gen_server.try_handle_call/4
phonedb-57c69655fc-mfdj8 phonedb             (stdlib 3.17.1) gen_server.erl:750: :gen_server.handle_msg/6
phonedb-57c69655fc-mfdj8 phonedb             (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

I think this might be on a get request:

case Paddle.get(%PhoneDb.Contacts.Ldap.Person{telephoneNumber: contact.phone_number}, nil) do

Where I expect it to return {:error, :noSuchObject} in this case.

Unfortunately this is not an error I can reproduce on demand. Just searching for a non-existent object produces the excepted results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions