Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flutter plugin reporting NSURLErrorCancelled when using certificate pinning on iOS


When using the Dart ssl_pinning_plugin check() method to validate certificates for a DNS, it creates a connection to retrieve the certificate info and then terminates the connection which results in the Dynatrace Flutter plugin reporting an error of -999 NSURLErrorCancelled on iOS. 



I cannot find a way to exclude that from being reported as an error and as such is causing all the user sessions for iOS to have high error rates and a poor Apdex rating.  We are able to exclude common response codes like 4xx or 5xx from being reported in Dynatrace but I do not see a way to exclude this particular error.  Is there something that can be configured either in Dynatrace or in the Dart code to exclude this?


Dynatrace Champion
Dynatrace Champion

On Dynatrace cluster side everything that is a HTTP code can be excluded from treating it as error, but this does not apply to other error responses, so anything that is not a 3-digit number in the HTTP response codes range is treated as an error (negative numbers, strings,...) and currently cannot be ignored.
FYI @thomas_billi  do we have an improvement for that situation planned?

iOS help:

Dynatrace Helper
Dynatrace Helper

It's definitely a limitation that we are aware of. We do not yet know how we will address it.

Dynatrace Guide
Dynatrace Guide

more customizable exclusion rules are planned with OpenPipeline and the new Platform once we ingest RUM data via OpenPipeline.

Featured Posts