Skip to content

JSON parsing error in readWiredashWarnings when sending events #396

@escamoteur

Description

@escamoteur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions