Skip to content

[Bug]: Listener call returns an error #573

@jonas-martinez

Description

@jonas-martinez

What happened?

I was testing the template-bun on this commit : lenra-io/template-bun-js@3e10671

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.

Screen.Recording.2024-01-07.at.12.32.02.mov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    🟡 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions