Git Product home page Git Product logo

twilio-chat-demo-js's Introduction

Deprecated

Please use the new conversations-demo-react.

Running the demo

Set credentials
  1. Copy credentials.example.json to credentials.json
  2. Plug your credentials into credentials.json

You can find the following credentials in your Twilio Console:

Config Value Description
accountSid Your primary Twilio account identifier - find this in the console here.
signingKeySid The SID for your API Key, used to authenticate - generate one here.
signingKeySecret The secret for your API Key, used to authenticate - you'll get this when you create your API key, as above.
serviceSid Like a database for your Chat data - generate one in the console here.
pushCredentialSid Credentials are records for push notification channels for APN and FCM - generate them in the console here and read more about configuring push here.
Install dependencies
$ npm install
Run server
$ npm start
Connect

Connect via http://localhost:8080

Using another version

This demo defaults to using the latest build of the Chat JS SDK. To change to a different version, just open public/index.html and change the following string to point to the URL of the version you'd like to use, for example to use v3.2.1:

<script src="https://media.twiliocdn.com/sdk/js/chat/releases/3.2.1/twilio-chat.min.js"></script>

twilio-chat-demo-js's People

Contributors

aleksandrsivanovs avatar berkus avatar ddanila avatar eddiezane avatar philnash avatar pmala5 avatar rbeiter avatar ryan-rowland avatar satchkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twilio-chat-demo-js's Issues

My bot not enter in chat room

I checked out the credentials.json and api.ai integration with Twilio.
The chat work for me as a guest, but bot is not there.

Can you clarify for me?
Thank you!

module.js:328 throw err;

npm start

[email protected] start /home/akhil/Desktop/twilio-chat-demo-js-master
node server.js

module.js:328
throw err;
^

Error: Cannot find module 'twilio'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/akhil/Desktop/twilio-chat-demo-js-master/lib/tokenprovider.js:3:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)

Twilio chat connection closed by server error 406

I am try to integrate Twilio chat in my website but when I try to make a request I get this error.

Twilsock E: Server closed connection because can't parse protocol: {"code":406,"status":"NOT_ACCEPTABLE_MESSAGE","description":"Not acceptable message","errorCode":51214}>

I can't find the cause for this error. The chat works when I run it on its own. I think maybe its because the website is running on firebase or uses handlebars.

Can't post media to channel

I am trying to post media using sendMessage function but it's not working

channel.sendMessage({
      contentType: 'image/svg+xml; charset=utf-8',
      media:
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">' +
      '<path d="M50,3l12,36h38l-30,22l11,36l-31-21l-31,21l11-36l-30-22h38z"' +
      ' fill="#FF0" stroke="#FC0" stroke-width="2"/></svg>',
  }).catch(function (reason) {
    console.log(reason);
  });

This coe reutrns no errors, but I can't send the image?!

error in gettoken

function logIn(identity, displayName) {
  fingerprint.get(function(endpointId) {
    request('/getToken?identity=' + identity + '&endpointId=' + endpointId, function(err, res) {
      if (err) { throw new Error(res.text); }

      var token = res.text;

      userContext.identity = identity;
      userContext.endpoint = endpointId;

      $('#login').hide();
      $('#overlay').hide();

      client = new Twilio.Chat.Client(token, { logLevel: 'debug' });

      accessManager = new Twilio.AccessManager(token);
      accessManager.on('tokenUpdated', am => client.updateToken(am.token));
      accessManager.on('tokenExpired', () => {
        request('/getToken?identity=' + identity + '&endpointId=' + endpointId, function(err, res) {
          if (err) {
            console.error('Failed to get a token ', res.text);
            throw new Error(res.text);
          }
          console.log('Got new token!', res.text);
          accessManager.updateToken(res.text);
        });
      })

gives error when fire the request for get token 404
http://localhost:63996/getToken?identity=dgdfh&endpointId=b7e41ae4174a565e2b2c859f04d9b924

Chat Session E: Failed to create session Error: Can't connect to twilsock

j

twilio-chat.min.js:127 2019-04-23T08:59:40.591Z Chat Session E: Failed to create session Error: Can't connect to twilsock
at t (twilio-chat.min.js:204)
at t (twilio-chat.min.js:204)
at new t (twilio-chat.min.js:204)
at e.value (twilio-chat.min.js:204)
at t.value (twilio-chat.min.js:204)
at twilio-chat.min.js:204
at t. (twilio-chat.min.js:204)
at twilio-chat.min.js:168
at t.a.emit (twilio-chat.min.js:168)
at t.value (twilio-chat.min.js:175)

Look here
http://prntscr.com/nfnws

Request to EMS service has failed, unable to set FPA token

All fields in my Access Token appears to be filled out properly...Twilio is return a token to me...but it get this error in line 18 of the ChatDemo.Droid project :

ChatClientCallbackListener

Error 0:3 Request to EMS service has failed, unable to set FPA token.

below is the token that Twilio returns to me:

REDACTED

what am i doing wrong?

updateMemberMessageReadStatus does not work

updateMemberMessageReadStatus function cannot be called out of anywhere. How should we update our members is not documented.

The following two snippets of codes can be found on your documentation(https://www.twilio.com/docs/chat/consumption-horizon) about updateMemmberMessageReadStatus and the update does not work:

activeChannel.on('memberUpdated', function(member) {   
     updateMemberMessageReadStatus(member.identity, 
                                   member.lastConsumedMessageIndex, 
                                   member.lastConsumptionTimestamp);
});

// retrieve the list of members for the active channel
var members = activeChannel.getMembers();
// for each member, set up a listener for when the member is updated
members.then(function(currentMembers) {
    currentMembers.forEach(function(member) {
        // handle the read status information for this member
        // note this method would use the provided information to render
        // this to the user in some way.
        updateMemberMessageReadStatus(
            member.identity, 
            member.lastConsumedMessageIndex, 
            member.lastConsumptionTimestamp
        );
    });
});

also raised a ticket in Twilio customer support
ticket number: 4720985

publicChannels is undefined - can't fetch Public channel

The error I am getting is:

TypeError: "_this6.services.publicChannels is undefined"
    _callee4$/</< webpack:///./node_modules/twilio-chat/browser/client.js?:452
    run webpack:///./node_modules/core-js/library/modules/es6.promise.js?:75
    notify webpack:///./node_modules/core-js/library/modules/es6.promise.js?:92
    flush webpack:///./node_modules/core-js/library/modules/_microtask.js?:18

Running version: "twilio-chat": "^3.3.0"

Using method .getChannelBySid(...) to fetch the channel. Confirmed that I'm using a proper SID.

So, to clarify, it works when the member that is within the channel requests channel info. The error only happens if a non-member requests info. I have confirmed that the channel in question has the type public, so it should work.

That aside, whatever the reason for failing is, the JS library would ideally throw a more useful error, but I understand that's not always possible.

If there are other details I could look into, let me know.

Chat client reinitialize error

I have reduced the ttl to 40 seconds tokenprovider.js, but on the client side tokenAboutToExpire event is never getting hit.

So I have added tokenExpired event listener, but unable to update client. (unable to send/retrive messages thereafter)

var token = new AccessToken(this.accountSid, this.signingKeySid, this.signingKeySecret, {
    identity: identity,
    ttl: 40
  });

Cannot hit APi https://chat.twilio.com/v2/Services/ISXXXX/Channels/CHXX/Invites

axios
.post(
"https://chat.twilio.com/v2/Services/ISxxx/Channels/CHcxxx/Invites",
{
Identity: "jack",
},
{
auth: {
username: "AXXXX",
password: "8XXX",
},
// headers: {
// "Content-Type": "application/x-www-form-urlencoded",
// },
}
)
.then(({ data }) => {
console.log(data);
})
.catch((err) => console.log(err));

i tried to hit api from my react project but what i got is {"code": 20001, "message": "Missing required parameter Identity in the post body", "more_info": "https://www.twilio.com/docs/errors/20001", "status": 400} i have already put Identity on my axios req but still got this error and i tried with postman it works. Please Someone can help me ?? what is the problem ??

global is not defined

Attempting to use twilio-chat in an Angular project with TypeScript. I've tried various methods of importing and they all result in this error when trying to instantiate the Client.

import * as Chat from 'twilio-chat';
const client = await Chat.create(token); // ERR

import Client from 'twilio-chat';
const client = await Client.create(token); // ERR

import { Client } from 'twilio-chat';
const client = await Client.create(token); // ERR
core.js:15714 ERROR Error: Uncaught (in promise): ReferenceError: global is not defined
ReferenceError: global is not defined
    at Object../node_modules/twilsock/lib/tokenStorage.js (tokenStorage.js:51)
    at __webpack_require__ (bootstrap:83)
    at Object../node_modules/twilsock/lib/client.js (client.js:14)
    at __webpack_require__ (bootstrap:83)
    at Object../node_modules/twilsock/lib/index.js (index.js:3)
    at __webpack_require__ (bootstrap:83)
    at Object../node_modules/twilio-chat/browser/client.js (client.js:71)
    at __webpack_require__ (bootstrap:83)
    at Object../node_modules/twilio-chat/browser/index.js (index.js:3)
    at __webpack_require__ (bootstrap:83)
    at resolvePromise (zone.js:814)
    at resolvePromise (zone.js:771)
    at zone.js:873
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
    at Object.onInvokeTask (core.js:17280)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
    at drainMicroTaskQueue (zone.js:595)

Inspecting tokenStorage.js reveals the culprit two lines.

/**51 **/ TokenStorage.sessionStorage = global['sessionStorage'];
/**52 **/ TokenStorage.window = global['window'];

Adding (window as any).global = window; is a workaround but one that should not be needed.

I'm not sure if this is the correct place to file issues as the twilio-chat library does not seem to be open source and there isn't a bugs entry in package.json.

Add license

It would be awesome if you could add a license to the project so we know the terms for using the sample.

Visual notifications go nuts when conversation doesn't fit on page without scrolling

I've noticed an issue with this quickstart. When the conversation becomes long enough that a scrollbar appears, the visual notifications (bolding of the channel name and yellow box w/number of unread messages) starts going crazy. The number of unread messages flips back and forth between two values, which appear to be either the number of messages total in the channel, or the number of messages that do not fit on the screen.

For example: if there are 14 messages in the conversation total, and 12 of them fit on screen without scrolling, this number will rapidly alternate between 14 and 2.

I've been attempting to debug it myself but am coming up short. I'm attempting to retrofit this project to pilot a small chat service and this bug is very user-unfriendly; any help would be greatly appreciated.

Not able to create channel too many forbidden errors in console?

I was trying to setup the things and everything working fine till i login into the ip-messaging.

Successfully logged in.

Next, when i try to create channel and click on create channel it does nothing.

I have gone through the console and found out too many FORBIDDEN errors

f3694cb7cbab14d1d5ebacedd70438dffc42a26348

can you guys help me to setup the complete ip-messaging.

TwilioChat

I using twilio chatquickstart.I facing an error .The error is,
Error creating Twilio Chat Client: Request to EMS service has failed, unable to set FPA token.
Please help me to solve this.
LOgcat
2019-02-27 09:26:16.806 16805-16805/? I/.chatquickstar: Late-enabling -Xcheck:jni
2019-02-27 09:26:17.285 16805-16805/com.twilio.chatquickstart W/.chatquickstar: JIT profile information will not be recorded: profile file does not exits.
2019-02-27 09:26:17.290 16805-16805/com.twilio.chatquickstart I/chatty: uid=10376(com.twilio.chatquickstart) identical 10 lines
2019-02-27 09:26:17.290 16805-16805/com.twilio.chatquickstart W/.chatquickstar: JIT profile information will not be recorded: profile file does not exits.
2019-02-27 09:26:17.343 16805-16805/com.twilio.chatquickstart I/Perf: Connecting to perf service.
2019-02-27 09:26:17.374 16805-16805/com.twilio.chatquickstart I/InstantRun: starting instant run server: is main process
2019-02-27 09:26:17.543 16805-16805/com.twilio.chatquickstart I/DecorView: It non-support bigbang
2019-02-27 09:26:17.549 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isNeedChangeStatusBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@d7efb50] size: 1
2019-02-27 09:26:17.550 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isAPPNeedChangeSBColor pkgName: com.twilio.chatquickstart needKeep: false
2019-02-27 09:26:17.550 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isNeedChangeStatusBarColor false
2019-02-27 09:26:17.552 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@f839149] size: 1
2019-02-27 09:26:17.552 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isAPPNeedChange pkgName: com.twilio.chatquickstart needKeep: false
2019-02-27 09:26:17.552 16805-16805/com.twilio.chatquickstart I/PhoneWindow: isNeedChangeNaviBarColor false
2019-02-27 09:26:17.552 16805-16805/com.twilio.chatquickstart I/PhoneWindow: generateLayout mNavigationBarColor: ff000000
2019-02-27 09:26:17.553 16805-16805/com.twilio.chatquickstart I/PhoneWindow: generateLayout isLightNavi false, Visibility: 0
2019-02-27 09:26:17.676 16805-16805/com.twilio.chatquickstart W/.chatquickstar: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2019-02-27 09:26:17.679 16805-16805/com.twilio.chatquickstart W/.chatquickstar: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2019-02-27 09:26:17.866 16805-16805/com.twilio.chatquickstart D/TwilioChat: Retrieved access token from server: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImN0eSI6InR3aWxpby1mcGE7dj0xIn0.eyJqdGkiOiJTS2FiN2ZiMmJjMmU4Y2MxODg1ODczNDI3ZjI1MTgzODkwLTE1NTEyMzk0NzYiLCJncmFudHMiOnsiaXBfbWVzc2FnaW5nIjp7InNlcnZpY2Vfc2lkIjoiSVNmMmViZmNhMWEzZmE0OTIyOTA5YmQxYWE0NTNlYThhNiIsImVuZHBvaW50X2lkIjoiQ2hhdFF1aWNrc3RhcnQ6dW5kZWZpbmVkOnVuZGVmaW5lZCIsInB1c2hfY3JlZGVudGlhbF9zaWQiOiJDUjFmOTMxN2NmMTE4NGI3NTZlOWM2NDI4YzczYmVkZGFkIn19LCJpYXQiOjE1NTEyMzk0NzYsImV4cCI6MTU1MTI0MzA3NiwiaXNzIjoiU0thYjdmYjJiYzJlOGNjMTg4NTg3MzQyN2YyNTE4Mzg5MCIsInN1YiI6IkFDYzkzMTI0Nzg1YjYyOTVkMWQ5ZGI4NmI1MDE1MTdiOTMifQ.dxBGalmxwARCWw3VdDYjmNhWa6Dg-mAL28X03uHMx-g
2019-02-27 09:26:17.903 16805-16805/com.twilio.chatquickstart I/ChatClient: Twilio Chat SDK version 3.1.0
2019-02-27 09:26:17.945 16805-16805/com.twilio.chatquickstart D/OpenGLRenderer: Skia GL Pipeline
2019-02-27 09:26:29.747 16805-16849/com.twilio.chatquickstart I/Adreno: QUALCOMM build : a7f70d7, I06947f1a28
Build Date : 11/19/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
2019-02-27 09:26:29.747 16805-16849/com.twilio.chatquickstart I/Adreno: Build Config : S L 6.0.7 AArch64
2019-02-27 09:26:29.748 16805-16849/com.twilio.chatquickstart D/vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
2019-02-27 09:26:29.751 16805-16849/com.twilio.chatquickstart I/HAL: loaded HAL id=gralloc path=/vendor/lib64/hw/gralloc.msm8937.so hmi=0x0 handle=0x7495070f1adebe85
2019-02-27 09:26:29.760 16805-16849/com.twilio.chatquickstart I/Adreno: PFP: 0x005ff110, ME: 0x005ff066
2019-02-27 09:26:29.771 16805-16849/com.twilio.chatquickstart I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2019-02-27 09:26:29.772 16805-16849/com.twilio.chatquickstart I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2019-02-27 09:26:29.773 16805-16849/com.twilio.chatquickstart I/OpenGLRenderer: Initialized EGL, version 1.4
2019-02-27 09:26:29.773 16805-16849/com.twilio.chatquickstart D/OpenGLRenderer: Swap behavior 2
2019-02-27 09:26:29.842 16805-16849/com.twilio.chatquickstart D/vndksupport: Loading /vendor/lib64/hw/[email protected] from current namespace instead of sphal namespace.
2019-02-27 09:26:29.843 16805-16849/com.twilio.chatquickstart D/vndksupport: Loading /vendor/lib64/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
2019-02-27 09:26:29.844 16805-16849/com.twilio.chatquickstart I/HAL: loaded HAL id=gralloc path=/vendor/lib64/hw/gralloc.msm8937.so hmi=0x7d45b2f8d9 handle=0x7495070f1adebe85
2019-02-27 09:26:31.254 16805-16805/com.twilio.chatquickstart I/AssistStructure: Flattened final assist data: 2360 bytes, containing 1 windows, 8 views
2019-02-27 09:26:32.939 16805-16805/com.twilio.chatquickstart E/TwilioChat: Error creating Twilio Chat Client: Request to EMS service has failed, unable to set FPA token

Error: Could not authenticate fpa token

I am getting this error when I

POST https://ems.us1.twilio.com/v1/token 401 (Unauthorized)
{"message":"The authorization with Token failed","code":2016,"user_error":false,"params":{"description":"Could not authenticate fpa token"}}
EMS E: Error: The authorization with Token failed

I use PHP code to generate the token. The code is taken from the sample script provided in the Twilio console for token generation.

I generated a token in Twilio console and compared it with token generated from the server using jwt.io.

The payload have the correct authentication id, service id, api key and api secret.

Still I am getting the same error.

error could not authenticate fpa token

get channel by member's identity(channels are duplicated for the same members)

hi,
I'm using twilio chat javascript sdk v1.0. i want user to create a channel and add member to it , but if user had a previous channel with the same member , retrieve the channel and don't create a new one .
is there any way to get channel by members's identity ? or is there anyway for not duplicating channels for the same members ?

any help is appreciated,
regards,

getUnreadMessagesCount commented out

Hi,

Why is the following piece of code commented out? I'm having issues using getUnreadMessagesCount() in my own project and I'm wondering if this function is simply broken?

/*
  channel.getUnreadMessagesCount().then(count => {
    if (count > 0) {
      $el.addClass('new-messages');
      $count.text(count);
    }
  });
  */

getChannelByUniqueName connects to a different channel as defined

const ch = await client.getChannelByUniqueName('f748d55b-d6d3-4434-8a38-be703a8f049f');
await ch.join()

but on every second try, the channelJoined event is fired with a different channel. How is that possible? The event for f748d55b-d6d3-4434-8a38-be703a8f049f is never fired.

twilio-chat: "^4.1.0"

getMessages() are returning messages that are not allowed

I created a private channel, with a single admin user. Then, I have sent to the same a few messages.

Later, with a simple user without permissions ( just "edit Own Messages" ). I did the following:

chatClient
  .getChannelByUniqueName("privateRoom")
  .then(x => { channel = x }); // I'm  supposed to find the chat? lol

then:

channel.getMessages() -- here I can read ALL messaged even without join the channel

Am I doing something wrong?

Client.create() never resolves if the WebSocket fails

(This is an issue with twilio-chat, not the demo, but I couldn't find a place to report bugs on the SDK directly.)

Using Client.create() never resolves if the WebSocket fails. The easiest way to test this is to disconnect wifi/lan and run the following:

window.awaitingClient = Client.create(token).then(client => {
  console.log('client:', client);
});

If you check the console, you'll eventually see:

websocketchannel.js:16 WebSocket connection to 'wss://tsock.us1.twilio.com/v3/wsconnect' failed:
Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

But if you check the promise, it is eternally pending:

> awaitingClient
Promise {<pending>}

I expect that the promise would be rejected if the websocket fails.

Error: Cannot find module 'express'

module.js:328
throw err;
^

Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/akhil/Desktop/twilio-chat-demo-js-master/server.js:2:15)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)

npm ERR! Linux 4.8.0-54-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the twilio-chat-demo-js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs twilio-chat-demo-js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls twilio-chat-demo-js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/akhil/Desktop/twilio-chat-demo-js-master/npm-debug.log

unable to connect to twilio sync

I'm running the java code on android, it fetches jwt token from my server i can see in logs, but after pressing log-in after waiting a while on loading screen this toast comes
Error Logging in : Error 0:1401 Unable to establish connection to Twilio sync services.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.