# Exception on Android & iOS

**URL:** https://forum.social.plus/t/exception-on-android-ios/848
**Category:** General
**Created:** [July 27, 2023, 7:48pm UTC](https://forum.social.plus/t/exception-on-android-ios/848 "2023-07-27T19:48:24Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [July 27, 2023, 7:48pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/1 "2023-07-27T19:48:24Z")

</div>

Hello,  
I’m developing using Flutter and have the following exceptions  
What is the reason?  
Thanks Kobi

iOS  
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 54714

Android  
SocketException: Software caused connection abort (OS Error: Software caused connection abort, errno = 103), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 40946

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [July 31, 2023, 9:01am UTC](https://forum.social.plus/t/exception-on-android-ios/848/2 "2023-07-31T09:01:29Z")

</div>

Hello, let us check with the team for you.

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [July 31, 2023, 9:28am UTC](https://forum.social.plus/t/exception-on-android-ios/848/3 "2023-07-31T09:28:08Z")

</div>

Could you please help provide more detail on the previous actions, what function did you call/steps before you getting these exceptions?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 3, 2023, 5:00pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/4 "2023-08-03T17:00:40Z")

</div>

following more information about the exception  
I don’t know what function was excecuted  
I was on Android device and not on iPhone  
I’m using amity\_sdk: ^0.23.0  
Kobi

-12:29-08/03/2023-1020-2020-BaseDeviceInfo{data: {product: dandelion\_global, supportedAbis: [armeabi-v7a, armeabi], serialNumber: unknown, displayMetrics: {xDpi: 268.9410095214844, widthPx: 720.0, heightPx: 1600.0, yDpi: 269.1390075683594}, supported32BitAbis: [armeabi-v7a, armeabi], display: RP1A.200720.011, type: user, isPhysicalDevice: true, version: {baseOS: , securityPatch: 2022-07-01, sdkInt: 30, release: 11, codename: REL, previewSdkInt: 0, incremental: V12.5.6.0.RCDMIXM}, systemFeatures: [android.hardware.sensor.proximity, android.hardware.sensor.accelerometer, android.software.controls, android.hardware.faketouch, android.hardware.usb.accessory, android.software.backup, android.hardware.touchscreen, android.hardware.touchscreen.multitouch, android.software.print, android.hardware.ethernet, android.software.activities\_on\_secondary\_displays, android.software.voice\_recognizers, android.software.picture\_in\_picture, android.hardware.audio.low\_latency, android.software.vulkan.deqp.level, android.software.cant\_save\_state, android.hardware.opengles.aep, android.hardware.bluetooth, android.hardware.camera.autofocus, android.hardware.telephony.gsm, android.hardware.telephony.ims, android.software.incremental\_delivery, android.hardware.usb.host, android.hardware.audio.output, android.software.verified\_boot, android.hardware.camera.flash, android.hardware.camera.front, android.hardware.screen.portrait, com.google.android.feature.TURBO\_PRELOAD, android.hardware.sensor.stepdetector, android.software.home\_screen, android.hardware.microphone, android.software.autofill, android.software.securely\_removes\_users, android.hardware.bluetooth\_le, android.hardware.touchscreen.multitouch.jazzhand, android.software.app\_widgets, android.software.input\_methods, android.hardware.sensor.light, android.hardware.vulkan.version, android.software.companion\_device\_setup, android.software.device\_admin, com.google.android.feature.WELLBEING, android.hardware.wifi.passpoint, android.hardware.camera, android.hardware.screen.landscape, android.hardware.ram.normal, android.software.managed\_users, android.software.webview, android.hardware.sensor.stepcounter, android.hardware.camera.capability.manual\_post\_processing, android.hardware.camera.any, android.hardware.camera.capability.raw, android.hardware.vulkan.compute, com.google.android.apps.dialer.call\_recording\_audio, android.software.connectionservice, android.hardware.touchscreen.multitouch.distinct, android.hardware.location.network, android.software.cts, android.hardware.camera.capability.manual\_sensor, android.software.app\_enumeration, com.google.android.apps.dialer.SUPPORTED, android.hardware.camera.level.full, android.hardware.wifi.direct, android.software.live\_wallpaper, android.software.ipsec\_tunnels, android.hardware.location.gps, android.software.midi, android.hardware.wifi, android.hardware.location, com.google.android.mainline.patchlevel.1, android.hardware.vulkan.level, com.google.android.feature.PREMIER\_TIER, android.software.secure\_lock\_screen, android.hardware.telephony, android.software.file\_based\_encryption], manufacturer: Xiaomi, tags: release-keys, supported64BitAbis: , bootloader: unknown, fingerprint: Redmi/dandelion\_global/dandelion:11/RP1A.200720.011/V12.5.6.0.RCDMIXM:user/release-keys, host: [m1-xm-ota-bd093.bj.idc.xiaomi.com](http://m1-xm-ota-bd093.bj.idc.xiaomi.com), model: M2006C3LG, id: RP1A.200720.011, brand: Redmi, device: dandelion, board: dandelion, hardware: mt6762}}-

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [August 4, 2023, 11:45am UTC](https://forum.social.plus/t/exception-on-android-ios/848/5 "2023-08-04T11:45:27Z")

</div>

Thank you for providing the additional information. I just want to confirm: so it only displays exceptions in the log but it doesn’t cause any crashes or other issues, correct?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 4, 2023, 1:27pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/6 "2023-08-04T13:27:08Z")

</div>

Hello,  
Yes No crashes  
Thanks Kobi

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 5, 2023, 8:01pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/7 "2023-08-05T20:01:05Z")

</div>

The exception was also on iPhone

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [August 7, 2023, 8:49am UTC](https://forum.social.plus/t/exception-on-android-ios/848/8 "2023-08-07T08:49:48Z")

</div>

Could you please share what exception did you receive on iphone as well?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 7, 2023, 11:19am UTC](https://forum.social.plus/t/exception-on-android-ios/848/9 "2023-08-07T11:19:54Z")

</div>

SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 57415

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [August 8, 2023, 12:55pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/10 "2023-08-08T12:55:37Z")

</div>

From your android log, the error seems to be related to the connection, could you double check the the device’s connectivity and the internet permissions please?

For iOS, it possible, could you please provide the exception log as a textFile?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 8, 2023, 3:33pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/11 "2023-08-08T15:33:06Z")

</div>

Thanks I will check  
what Amity suppose to do on network error?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 12, 2023, 10:02pm UTC](https://forum.social.plus/t/exception-on-android-ios/848/12 "2023-08-12T22:02:08Z")

</div>

I found following in the log  
[log] AMITY\_MQTT::Ping response client callback invoked  
[log] AMITY\_MQTT::Ping response client callback invoked

following exceptions  
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 50634

SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 50634

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [August 16, 2023, 6:52am UTC](https://forum.social.plus/t/exception-on-android-ios/848/13 "2023-08-16T06:52:50Z")

</div>

Hi @meridork ,

Can you help share which SDK vers. you’re using for this?

Thank you,  
Amity Support

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 16, 2023, 8:40am UTC](https://forum.social.plus/t/exception-on-android-ios/848/14 "2023-08-16T08:40:14Z")

</div>

At this time using version: “0.25.0”

**following exception**  
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = [ssq.eu.amity.co](http://ssq.eu.amity.co), port = 57540

stack  
#0 \_NativeSocket.write (dart:io-patch/socket\_patch.dart:1223  
)#1 \_RawSocket.write (dart:io-patch/socket\_patch.dart:1966)  
#2 \_ExternalBuffer.readToSocket (dart:io/secure\_socket.dart:1327)  
#3 \_RawSecureSocket.\_writeSocket (dart:io/secure\_socket.dart:1089)  
#4 \_RawSecureSocket.\_tryFilter (dart:io/secure\_socket.dart:1035)

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [August 16, 2023, 9:59am UTC](https://forum.social.plus/t/exception-on-android-ios/848/15 "2023-08-16T09:59:34Z")

</div>

May we confirm that this is the only exception you’re facing in this version 0.25? or are there other exceptions as well?

Note: To prevent confusion, let’s maintain this topic as the primary one for further discussion on the exception issue.

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 16, 2023, 10:25am UTC](https://forum.social.plus/t/exception-on-android-ios/848/16 "2023-08-16T10:25:47Z")

</div>

Yes this is the only one
