blackuy / twilio-chat Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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.
I have tried to set fcm token to the client by using setPushRegistrationId with fcm token as a parameter.
const fcmToken = await firebase.messaging().getToken();
this.client.setPushRegistrationId('fcm', fcmToken)
Since I am not receiving the notification, I checked with bindings in Twilio console. The bindings are not created in the console. I am not getting any idea of the issue. Please help me to sort out this.
Hi, when trying to user npm install I am getting below error. Can you plz look into it.
$ npm install twilio-chat
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected string or string but got null
npm ERR! typeerror at fetchPackageMetadata (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:36:3)
npm ERR! typeerror at limited (C:\Program Files\nodejs\node_modules\npm\node_modules\call-limit\call-limit.js:29:10)
npm ERR! typeerror at addDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:537:5)
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:470:5
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
npm ERR! typeerror at Array.forEach ()
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
npm ERR! typeerror at Array.forEach ()
npm ERR! typeerror at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
npm ERR! typeerror at loadDeps (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:462:3)
npm ERR! typeerror at Array. (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
npm ERR! typeerror at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:18:7
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\lib\install\and-finish-tracker.js:8:8
npm ERR! typeerror at zalgoSafe (C:\Program Files\nodejs\node_modules\npm\node_modules\dezalgo\dezalgo.js:20:10)
npm ERR! typeerror at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:7:26)
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror https://github.com/npm/npm/issues
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Anurodh\AppData\Roaming\npm-cache_logs\2018-06-20T02_13_25_826Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.