lenra-io/server

[Bug]: Listener call returns an error

Open

#573 opened on Jan 7, 2024

 (0 comments) (0 reactions) (0 assignees)Elixir (0 forks)auto 404
buggood first issue

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (PR metrics pending)

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