# Exception join channel

**URL:** https://forum.social.plus/t/exception-join-channel/927
**Category:** Flutter
**Created:** [September 21, 2023, 1:24pm UTC](https://forum.social.plus/t/exception-join-channel/927 "2023-09-21T13:24:17Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Marcocrea](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Marcocrea](https://forum.social.plus/u/Marcocrea)
#### Post date: [September 21, 2023, 1:24pm UTC](https://forum.social.plus/t/exception-join-channel/927/1 "2023-09-21T13:24:18Z")

</div>

Hi  
my developer use flutter sdk, we have exception when getting channel list or join a channel  
await AmityChannelRepository().joinChannel(channel.channelPublicId!);

not on all channel but only for some channel, we don’t know why, the channel are creating from backend software all at the same mode. So the channles tructure should be all the same.  
This is the exception  
flutter: NoSuchMethodError: The method ‘map’ was called on null.  
flutter: Receiver: null  
flutter: Tried calling: map(Closure: (dynamic) =\> dynamic)  
flutter:  
flutter: ---------------  
flutter:  
flutter: #0 Object.noSuchMethod (dart:core-patch/object\_patch.dart:38:5)  
flutter: #1 new ChannelResponse.fromJson (package:amity\_sdk/src/data/response/core\_response/channel\_response.dart:108:46)  
flutter: #2 new CreateChannelResponse.fromJson. (package:amity\_sdk/src/data/response/create\_channel\_response.dart:45:57)  
flutter: #3 MappedListIterable.elementAt (dart:\_internal/iterable.dart:415:31)  
flutter: #4 ListIterator.moveNext (dart:\_internal/iterable.dart:344:26)  
flutter: #5 new List.from (dart:core-patch/array\_patch.dart:37:17)  
flutter: #6 new CreateChannelResponse.fromJson (package:amity\_sdk/src/data/response/create\_channel\_response.dart:44:19)  
flutter: #7 ChannelMemberApiInterfaceImpl.joinChannel (package:amity\_sdk/src/data/data\_source/remote/http\_api\_interface\_impl/channel\_member\_api\_interface\_impl.dart:78:36)  
flutter:   
flutter: #8 ChannelMemberRepoImpl.joinChannel (package:amity\_sdk/src/data/repo\_impl/channel\_member\_repo\_impl.dart:54:18)  
flutter:   
flutter: #9 ChannelWidget.build. (package:tw\_o\_platform/widgets/atoms/channel\_widget.dart:21:11)  
flutter:   
flutter:

---

<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: [September 21, 2023, 2:13pm UTC](https://forum.social.plus/t/exception-join-channel/927/2 "2023-09-21T14:13:06Z")

</div>

Does this exception cause the crash as well? May I know your current flutter sdk version, please?

---

<div class="post-metadata">

### Author: ![Marcocrea](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Marcocrea](https://forum.social.plus/u/Marcocrea)
#### Post date: [September 21, 2023, 2:17pm UTC](https://forum.social.plus/t/exception-join-channel/927/3 "2023-09-21T14:17:44Z")

</div>

SDK version is 0.27.0

---

<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: [September 21, 2023, 2:42pm UTC](https://forum.social.plus/t/exception-join-channel/927/4 "2023-09-21T14:42:23Z")

</div>

Thanks! Could you clarify which types of channels are experiencing this exception? Are they the same type as those that don’t encounter this exception? Also, does this exception lead to crashes?

---

<div class="post-metadata">

### Author: ![Marcocrea](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Marcocrea](https://forum.social.plus/u/Marcocrea)
#### Post date: [September 21, 2023, 2:51pm UTC](https://forum.social.plus/t/exception-join-channel/927/5 "2023-09-21T14:51:15Z")

</div>

Yes, all are the same (standard type), attached json use backend to have list of channel  
the only channels that work are those whose diaplayname begins with “Roma…” are 4 channels. All others channel doesnìt works when flutter try to get joinchannel for a user

```auto

{"ReturnCode":1,"ReturnValue":{"Payload":[{"_id":"650c46e9561b7e1d669bf96f","path":"649aab486f9a25a6bb94099d/chat/channel/650c46e9561b7e1d669bf96f","channelId":"TEST-226-000006-RTL","channelInternalId":"650c46e9561b7e1d669bf96f","channelPublicId":"TEST-226-000006-RTL","isDistinct":false,"metadata":{"ClientId":"226","Airport":"BGY","Category":"RTL"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Milan Bergamo Airport - Retail","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":1,"messageCount":0,"lastActivity":"2023-09-21T13:36:41.577Z","createdAt":"2023-09-21T13:36:41.577Z","updatedAt":"2023-09-21T13:36:41.577Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"650c46e902beb40be132eb06","path":"649aab486f9a25a6bb94099d/chat/channel/650c46e902beb40be132eb06","channelId":"TEST-226-000006-FB","channelInternalId":"650c46e902beb40be132eb06","channelPublicId":"TEST-226-000006-FB","isDistinct":false,"metadata":{"ClientId":"226","Airport":"BGY","Category":"FB"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Milan Bergamo Airport - Food&Beverage","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":1,"messageCount":0,"lastActivity":"2023-09-21T13:36:41.296Z","createdAt":"2023-09-21T13:36:41.296Z","updatedAt":"2023-09-21T13:36:41.296Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"650c3d2150f8f5e4f777dab5","path":"649aab486f9a25a6bb94099d/chat/channel/650c3d2150f8f5e4f777dab5","channelId":"TEST-011-000003-RTL","channelInternalId":"650c3d2150f8f5e4f777dab5","channelPublicId":"TEST-011-000003-RTL","isDistinct":false,"metadata":{"ClientId":"11","Airport":"VCE","Category":"RTL"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Venezia - Marco Polo - Retail","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":2,"messageCount":0,"lastActivity":"2023-09-21T12:54:57.221Z","createdAt":"2023-09-21T12:54:57.221Z","updatedAt":"2023-09-21T12:55:15.722Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"650c3d2050f8f5fb8a77daa6","path":"649aab486f9a25a6bb94099d/chat/channel/650c3d2050f8f5fb8a77daa6","channelId":"TEST-011-000003-FB","channelInternalId":"650c3d2050f8f5fb8a77daa6","channelPublicId":"TEST-011-000003-FB","isDistinct":false,"metadata":{"ClientId":"11","Airport":"VCE","Category":"FB"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Venezia - Marco Polo - Food&Beverage","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":2,"messageCount":0,"lastActivity":"2023-09-21T12:54:56.98Z","createdAt":"2023-09-21T12:54:56.98Z","updatedAt":"2023-09-21T12:55:10.634Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"6509adc4a1a98252a6411de6","path":"649aab486f9a25a6bb94099d/chat/channel/6509adc4a1a98252a6411de6","channelId":"TEST-130-000004-RTL","channelInternalId":"6509adc4a1a98252a6411de6","channelPublicId":"TEST-130-000004-RTL","isDistinct":false,"metadata":{"ClientId":"130","Airport":"BLQ","Category":"RTL"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Bologna - Guglielmo Marconi - Retail","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":2,"messageCount":0,"lastActivity":"2023-09-19T14:18:44.944Z","createdAt":"2023-09-19T14:18:44.944Z","updatedAt":"2023-09-21T12:50:05.614Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"6509adc4a1a98267d6411dae","path":"649aab486f9a25a6bb94099d/chat/channel/6509adc4a1a98267d6411dae","channelId":"TEST-130-000004-FB","channelInternalId":"6509adc4a1a98267d6411dae","channelPublicId":"TEST-130-000004-FB","isDistinct":false,"metadata":{"ClientId":"130","Airport":"BLQ","Category":"FB"},"type":"standard","tags":null,"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Bologna - Guglielmo Marconi - Food&Beverage","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":0,"memberCount":2,"messageCount":0,"lastActivity":"2023-09-19T14:18:44.703Z","createdAt":"2023-09-19T14:18:44.703Z","updatedAt":"2023-09-21T12:51:41.437Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"64ef09fb292e360f5ce02f93","path":"649aab486f9a25a6bb94099d/chat/channel/64ef09fb292e360f5ce02f93","channelId":"TEST-001-000001-RTL","channelInternalId":"64ef09fb292e360f5ce02f93","channelPublicId":"TEST-001-000001-RTL","isDistinct":false,"metadata":{"ClientId":"1","Airport":"FCO","Category":"RTL"},"type":"standard","tags":[],"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Roma - Fiumicino - Retail","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":1000,"memberCount":4,"messageCount":10,"lastActivity":"2023-09-19T12:52:27.071Z","createdAt":"2023-08-30T09:20:59.398Z","updatedAt":"2023-09-19T12:52:27.136Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"64ef09cfde1848293e73bf8a","path":"649aab486f9a25a6bb94099d/chat/channel/64ef09cfde1848293e73bf8a","channelId":"TEST-001-000001-FB","channelInternalId":"64ef09cfde1848293e73bf8a","channelPublicId":"TEST-001-000001-FB","isDistinct":false,"metadata":{"ClientId":"1","Airport":"FCO","Category":"FB"},"type":"standard","tags":[],"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Roma - Fiumicino - Food&Beverage","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":1000,"memberCount":2,"messageCount":1,"lastActivity":"2023-09-18T12:37:25.183Z","createdAt":"2023-08-30T09:20:15.076Z","updatedAt":"2023-09-18T12:37:25.318Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"64ef0a05292e367c22e03048","path":"649aab486f9a25a6bb94099d/chat/channel/64ef0a05292e367c22e03048","channelId":"TEST-001-000002-FB","channelInternalId":"64ef0a05292e367c22e03048","channelPublicId":"TEST-001-000002-FB","isDistinct":false,"metadata":{"ClientId":"1","Airport":"CIA","Category":"FB"},"type":"standard","tags":[],"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Roma - Ciampino - Food&Beverage","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":1000,"memberCount":2,"messageCount":0,"lastActivity":"2023-08-30T09:23:28.466Z","createdAt":"2023-08-30T09:21:09.038Z","updatedAt":"2023-09-20T16:08:20.027Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null},{"_id":"64ef0a05812066a55fc759aa","path":"649aab486f9a25a6bb94099d/chat/channel/64ef0a05812066a55fc759aa","channelId":"TEST-001-000002-RTL","channelInternalId":"64ef0a05812066a55fc759aa","channelPublicId":"TEST-001-000002-RTL","isDistinct":false,"metadata":{"ClientId":"1","Airport":"CIA","Category":"RTL"},"type":"standard","tags":[],"isMuted":false,"isRateLimited":false,"muteTimeout":"0001-01-01T00:00:00","rateLimit":0,"rateLimitWindow":1000,"rateLimitTimeout":"0001-01-01T00:00:00","displayName":"Roma - Ciampino - Retail","messageAutoDeleteEnabled":false,"autoDeleteMessageByFlagLimit":1000,"memberCount":2,"messageCount":0,"lastActivity":"2023-08-30T09:23:16.726Z","createdAt":"2023-08-30T09:21:09.815Z","updatedAt":"2023-09-20T16:07:03.98Z","avatarFileId":null,"isDeleted":false,"Airport":null,"Category":null,"ClientId":null}]},"ErrorDescription":null,"SuccessMessage":null,"AlertMessage":null,"OtherInfo":null}

```

---

<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: [September 21, 2023, 3:29pm UTC](https://forum.social.plus/t/exception-join-channel/927/6 "2023-09-21T15:29:01Z")

</div>

Thank you for providing the json, this is very helpful. Let me pass this to our team to help check.

---

<div class="post-metadata">

### Author: ![Marcocrea](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Marcocrea](https://forum.social.plus/u/Marcocrea)
#### Post date: [September 22, 2023, 7:48am UTC](https://forum.social.plus/t/exception-join-channel/927/7 "2023-09-22T07:48:03Z")

</div>

Hi, no good news about exception?

---

<div class="post-metadata">

### Author: ![Marcocrea](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Marcocrea](https://forum.social.plus/u/Marcocrea)
#### Post date: [September 22, 2023, 8:49am UTC](https://forum.social.plus/t/exception-join-channel/927/8 "2023-09-22T08:49:56Z")

</div>

Hi think understand error, I created the channels with v2 and type=standard. If I create new channels with v3 type=community it’s works fine for all channels.  
But it’s strange that come channels create with type=standard worked fine and some other channels not worked fine

---

<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: [September 22, 2023, 10:05am UTC](https://forum.social.plus/t/exception-join-channel/927/9 "2023-09-22T10:05:54Z")

</div>

Thank you for the update, glad it’s working now. It’s possible that the v2 standard type is no longer available, which could indicate that it may not be fully functional.
