steep-balloon-41261
12/24/2021, 1:55 PMsalmon-london-45375
12/24/2021, 2:13 PMsalmon-london-45375
12/24/2021, 2:15 PMsalmon-london-45375
12/24/2021, 2:22 PMcareful-magician-40224
12/24/2021, 5:49 PMcareful-magician-40224
12/24/2021, 7:59 PMconst livekitHost = '<http://localhost:7000>';
const svc = new RoomServiceClient(livekitHost, 'api-key', 'secret-key');
// create a new room
const opts = {
name: 'myroom',
// timeout in seconds
emptyTimeout: 10 * 60,
maxParticipants: 20
}
svc.createRoom(opts).then((room) => {
console.log('room created', room)
})
but i got this error when i run the server. (node:41383) UnhandledPromiseRejectionWarning: Error: Request failed with status code 404
at createError (/Users/Username/Google Drive/CityHi/Server/node_modules/axios/lib/core/createError.js1615). am not really sure why, or dose it has to do with the localhost ?salmon-london-45375
12/24/2021, 10:03 PM<ws://localhost:7000>, not httpcareful-magician-40224
12/24/2021, 10:35 PMsalmon-london-45375
12/24/2021, 10:53 PMsalmon-london-45375
12/24/2021, 10:54 PMcareful-magician-40224
12/25/2021, 11:25 AM