[Bug]: Server throw Error 500 on listener_run call
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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