Closed isomizer closed 1 year ago
Hi @isomizer , thanks for reporting. I'm looking into it.
The weird thing is that we check for calling the proper closure in version 1.2.1 https://github.com/DataDog/dd-sdk-flutter/blob/5f7faa4d11afc17af4c7927228002ba6536458ae/packages/datadog_tracking_http_client/lib/src/tracking_http_client.dart#LL479C9-L482C22
And this code closely matches what the dart:io http packages does: https://github.com/dart-lang/sdk/blob/d0556f9c271cff0351736ddbbaebb116166d60f6/sdk/lib/_http/http_impl.dart#L718
So I'm very confused about what could be causing it.
Do you have a reproducible case? Can you see easily see what happens if you turn off http tracking?
Hi @isomizer
This looks like it's actually caused by datadog_tracking_http_client
1.2.0 which did an incorrect check for the error callback. 1.2.1 fixed this issue, so if you've already updated you should see these errors start to go away.
Please re-open if you continue to see this with 1.2.1
We're seeing this failure on the Datadog:
warning: NoSuchMethodError: Closure call with mismatched arguments: function '_ec._Rtc'
With the possible root cause being in package:datadog_tracking_http_client?
Stack Trace
``` warning: NoSuchMethodError: Closure call with mismatched arguments: function '_ec._Rtc' Receiver: Closure: (dynamic, na) => void from Function '_Rtc@4048458':. Tried calling: _ec._Rtc(Instance of 'Eo') Found: _ec._Rtc(dynamic, na) => void unparsed #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5) unparsed #1 _objectNoSuchMethod (dart:core-patch/object_patch.dart:85:9) unparsed #2 _DatadogTrackingHttpResponse.listen.I use datadog version