# Flutter plugin reporting NSURLErrorCancelled when using certificate pinning on iOS

**URL:** <https://community.dynatrace.com/t/flutter-plugin-reporting-nsurlerrorcancelled-when-using-certificate-pinning-on-ios/36138>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring, ios\
**Created:** [August 5, 2022, 2:40pm UTC](https://community.dynatrace.com/t/flutter-plugin-reporting-nsurlerrorcancelled-when-using-certificate-pinning-on-ios/36138 "2022-08-05T14:40:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jcornelius](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jcornelius/32/28372_2.png) [@jcornelius](https://community.dynatrace.com/u/jcornelius)\
**Post date:** [August 5, 2022, 2:40pm UTC](https://community.dynatrace.com/t/flutter-plugin-reporting-nsurlerrorcancelled-when-using-certificate-pinning-on-ios/36138/1 "2022-08-05T14:40:17Z")

</div>

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.

 ![NSURLErrorCancelled.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/0/f0954289733846cdb4eab5cfd866499f4b1440ec.png)

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.&nbsp; 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.&nbsp; Is there something that can be configured either in Dynatrace or in the Dart code to exclude this?

---

_[View the full topic](https://community.dynatrace.com/t/flutter-plugin-reporting-nsurlerrorcancelled-when-using-certificate-pinning-on-ios/36138)._
