Description
Getting a JSON parsing exception when Wiredash tries to send analytics events. The error occurs in WiredashApiWarnings.readWiredashWarnings when parsing the server response.
Stack trace
_ChunkedJsonParser.fail (convert_patch.dart:1467)
_ChunkedJsonParser.parseNumber (convert_patch.dart:1333)
_ChunkedJsonParser.parse (convert_patch.dart:935)
_parseJson (convert_patch.dart:35)
JsonDecoder.convert (json.dart:641)
JsonCodec.decode (json.dart:223)
jsonDecode (json.dart:160)
WiredashApiWarnings.readWiredashWarnings (api_exceptions.dart:144)
postSendEvents (send_ev3nts_request.dart:26)
WiredashApi.sendEvents (wiredash_api.dart:86)
DebounceEventSubmitter._actuallySubmit (ev3nt_submitter.dart:164)
DebounceEventSubmitter.submitEvents (ev3nt_submitter.dart:90)
EventUploadJob.execute (ev3nt_upload_job.dart:31)
SyncEngine._triggerEvent (sync_engine.dart:127)
Environment
- Wiredash version: 2.6.0
- Flutter version: 3.38.1 (stable channel)
- Platform: Linux (also reproduced on Android)
Additional context
The error appears to be caused by a malformed JSON response from the Wiredash server, specifically failing in parseNumber. This happens asynchronously when the SDK tries to upload tracked events.
The app is using Wiredash.trackEvent() for analytics. The events appear to be tracked correctly, but the server response parsing fails.
Description
Getting a JSON parsing exception when Wiredash tries to send analytics events. The error occurs in
WiredashApiWarnings.readWiredashWarningswhen parsing the server response.Stack trace
Environment
Additional context
The error appears to be caused by a malformed JSON response from the Wiredash server, specifically failing in
parseNumber. This happens asynchronously when the SDK tries to upload tracked events.The app is using
Wiredash.trackEvent()for analytics. The events appear to be tracked correctly, but the server response parsing fails.