lenra-io / lenra-io/server

[Bug]: Listener call returns an error

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

Nobody has claimed this yet.

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

Description

What happened?

I was testing the template-bun on this commit : https://github.com/lenra-io/template-bun-js/commit/3e1067122107e3fdebb48e1aed3fa02b29a98048

It seems that when opening the application page, you can't click more than once on the increment button. An error occurs and if you wait a little (5 seconds), it will actually register the event properly. If you let time for the app page to initialise, this error does not occur.

https://github.com/lenra-io/lenra_cli/assets/36544012/d48c72cc-ce45-4611-8b7d-ee92f3a1572e

LOGS

Client

Error: Expected a value of type 'String', but got one of type 'Null'
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3       throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 127:3       castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 818:12  cast
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 674:17                as
packages/client_common/api/response_models/api_error.dart 14:17                   fromJson
packages/lenra_ui_runner/io_components/lenra_route.dart 47:26
What browsers are you seeing the problem on?

No response

Version

No response

Relevant log output

No response

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

Reproduce the issue with template-bun at commit 3e1067122107e3fdebb48e1aed3fa02b29a98048 and inspect the listener response. Start with packages/client_common/api/response_models/api_error.dart and packages/lenra_ui_runner/io_components/lenra_route.dart, then trace the corresponding server response. Done means repeated clicks on increment register without the null String error or delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, elixir, javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.