Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

Expected a value of type 'int', but got one of type 'String' Flutter web

Open duncanokeyo opened this issue 3 years ago • 1 comments

Describe the bug Got Expected a value of type 'int', but got one of type 'String' on flutter web when i joinChannelWithUserAccount (agora_rtc_engine 5.3.0) To Reproduce Steps to reproduce the behavior:

  1. join channel using joinChannelWithUserAccount

Expected behavior I should be able to join channel with user account

Error: Expected a value of type 'int', but got one of type 'String' at Object.throw_ [as throw] (http://localhost:34233/dart_sdk.js:5405:11) at Object.castError (http://localhost:34233/dart_sdk.js:5362:15) at Object.cast [as as] (http://localhost:34233/dart_sdk.js:5686:17) at int.as (http://localhost:34233/dart_sdk.js:20606:19) at Object.RtcEngineEventHandlerExt$124process [as RtcEngineEventHandlerExt|process] (http://localhost:34233/packages/agora_rtc_engine/src/impl/rtc_engine_event_handler_impl.dart.lib.js:68:82) at http://localhost:34233/packages/agora_rtc_engine/src/rtc_engine_extension_web.dart.lib.js:2274:145 at _RootZone.runUnaryGuarded (http://localhost:34233/dart_sdk.js:42845:11) at [_sendData] (http://localhost:34233/dart_sdk.js:35964:22) at _DelayedData.new.perform (http://localhost:34233/dart_sdk.js:39604:28) at _StreamImplEvents.new.handleNext (http://localhost:34233/dart_sdk.js:39722:15) at async._AsyncCallbackEntry.new.callback (http://localhost:34233/dart_sdk.js:39458:16) at Object._microtaskLoop (http://localhost:34233/dart_sdk.js:43223:13) at _startMicrotaskLoop (http://localhost:34233/dart_sdk.js:43229:13) at http://localhost:34233/dart_sdk.js:38359:9

duncanokeyo avatar Jul 29 '22 11:07 duncanokeyo

It's a known bug of joinChannelWithUserAccount on agora_rtc_engine web, you can use joinChannel for a temporary workaround at this time.

littleGnAl avatar Aug 01 '22 03:08 littleGnAl

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Aug 22 '22 03:08 github-actions[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

github-actions[bot] avatar Apr 28 '23 11:04 github-actions[bot]