-1

i was just using the twilio chat library for JS when i run in localhost tried login as guest.i am getting this error :

http://localhost:81/getToken?identity=frend&endpointId=394c15ba68f92e147e827c08b54799e1 404 Not Found

my path to directory was

http://localhost:81/JSCli/twilio-chat-demo-js-master/public/

but its redirecting to above one in twilio chat demo js .can anyone help me on this.thanks in advance.

bvibes
  • 49
  • 4
  • 404 not found means exactly that. Not found. Your path is in a sub-directory /JSCli whereas it is looking for getToken in the root. Update your configuration and tell it it's running in a sub directory so the references are generated properly. Otherwise, follow the tutorial EXACTLY. – zerohero Jan 04 '17 at 10:43
  • Yes.i got that..but why that is pointing to root directory i didnt find ant get token api in directory from where it is refrring i want to know.this is twilio chat demo js lib.kindly can you help me on this. – bvibes Jan 04 '17 at 10:58
  • RTFM please or ask the developers why their program sucks – zerohero Jan 04 '17 at 10:59
  • Are you using one of the quickstarts? Can you tell me which one? Thanks! – philnash Jan 04 '17 at 11:45
  • yea i am using twili javascript chat demo [link] https://github.com/twilio/twilio-chat-demo-js – bvibes Jan 04 '17 at 14:55

1 Answers1

0

that /gettoken doesn't exists in the library which we'll download from github twilio js chat demo. we have to create a file which will generate the access token for twilio operations.

bvibes
  • 49
  • 4