lenra-io / lenra-io/server

[Bug]: Server throw Error 500 on listener_run call

Open
#563 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Elixir
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

What happened?

Sometimes we just got an error 500 from the server when calling a listener from the app.

Probably when the listener return nothing or crash, the listener get a timeout error and made this error to be thrown.

What browsers are you seeing the problem on?

No response

Version

1.5.3

Relevant log output
[__exception__: true, __struct__: LenraCommon.Errors.TechnicalError, message: "Unknown error", metadata: "503\n\tlib/services/application_services.ex:393 Elixir.ApplicationRunner.ApplicationServices.response/2\n\tlib/services/application_services.ex:74 Elixir.ApplicationRunner.ApplicationServices.run_listener/5\n\tlib/event_handler.ex:105 Elixir.ApplicationRunner.EventHandler.handle_call/3\n\tgen_server.erl:721 gen_server.try_handle_call/4\n\tgen_server.erl:750 gen_server.handle_msg/6\n\tproc_lib.erl:226 proc_lib.init_p_do_apply/3", reason: :unknown_error, status_code: 500]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a listener_run call where the listener returns nothing or crashes, then trace the stack through lib/services/application_services.ex response/2 and run_listener/5 and lib/event_handler.ex handle_call/3. Compare the resulting timeout or failure with the expected listener response and document or test the behavior that should replace the generic 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.