Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Crash after sending bad properties for events  #62

@danielgomezrico

Description

@danielgomezrico

After you send bad properties the Segment SDK on android throws an exception that is not been handled by the library and so the Flutter code can not handle it.

Example

Segment.track('any', { MapEntry('something': 'other') })

Stacktrace

/flutter (10715): Invalid argument: Instance of 'MappedListIterable<MapEntry, Map<String, dynamic>>'
I/flutter (10715): 	#0      StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:404:7)
I/flutter (10715): 	#1      StandardMessageCodec.writeValue.<anonymous closure> (package:flutter/src/services/message_codecs.dart:401:9)
I/flutter (10715): 	#2      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
I/flutter (10715): 	#3      StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:399:13)
I/flutter (10715): 	#4      StandardMessageCodec.writeValue.<anonymous closure> (package:flutter/src/services/message_codecs.dart:401:9)
I/flutter (10715): 	#5      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
I/flutter (10715): 	#6      StandardMessageCodec.writeValue (package:flutter/src/services/message_codecs.dart:399:13)
I/flutter (10715): 	#7      StandardMethodCodec.encodeMethodCall (package:flutter/src/services/message_codecs.dart:536:18)
I/flutter (10715): 	#8      MethodChannel._invokeMethod (package:flutter/src/servi

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