Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Promise Rejection - on iOS only #3

Open
Anytram opened this issue Sep 21, 2021 · 0 comments
Open

Unhandled Promise Rejection - on iOS only #3

Anytram opened this issue Sep 21, 2021 · 0 comments

Comments

@Anytram
Copy link

Anytram commented Sep 21, 2021

Hi,
I get following message when I try to open chat sometimes:

2021-09-21 08:00:08.169344+0200 mindleap[5858:977051] [javascript] Possible Unhandled Promise Rejection (id: 0):
Error: Forbidden
construct@[native code]
_construct@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:28735:28
Wrapper@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:28684:25
construct@[native code]
_createSuperInternal@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:294893:294
TwilsockError@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:294909:25
construct@[native code]
_createSuperInternal@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:296633:294
TwilsockUpstreamError@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:296653:26
actualSend$@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:296580:72
tryCatch@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:1446:23
invoke@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:1616:32
tryCatch@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:1446:23
invoke@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:1518:30
/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:1528:21
tryCallOne@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:6389:16
/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:6490:27
_callTimer@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:31006:17
_callImmediatesPass@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:31045:17
callImmediates@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:31262:33
__callImmediates@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:5719:35
/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:5505:34
__guard@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:5702:15
flushedQueue@/private/var/containers/Bundle/Application/6CBB391E-A470-45EE-AD2A-B0D520AA93D9/mindleap.app/main.jsbundle:5504:21
flushedQueue@[native code]
callFunctionReturnFlushedQueue@[native code]

I determined that it occurs when my app tries to open channel:

		const channel: Channel = await chatClient.getChannelBySid(
			twilioPar.twilioChatChannelSid
		);

I also checked and my twilioPar is not null or undefined and seems to be correct. My client also exists.
This whole bug seems pretty random thought.

@Anytram Anytram changed the title Unhandled Promise Rejection Unhandled Promise Rejection - on iOS only Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant