This message was deleted.
# cloud
s
This message was deleted.
h
Participant metadata is still updating correctly, it's just room metadata that is the problem.
I can supply the cloud project and room-id if this helps with debugging.
d
Hey Matt, it'd be helpful if you can share the room-id and project. we could look at the logs to see what's different about this room
h
Project: p_4ntbwtx9ja0 Current Session: RM_ECB8QQ9j9hF6 Previous Session (before delete): RM_c4cSn3CVgWtk Room ID: dsx-osik-csi
👍 2
l
@dry-elephant-14928 Hi, I’m experiencing the same issue.
p_1dg7i9mmh2g / RM_Uwa68DPPM3wS
As Matt explained, when participant connects to the room he receives
RoomEvent.RoomMetadataChanged
event but any subsequent changes to the metadata are not propagated.
👀 1
d
thanks guys for the info. we'll dig into the logs shortly.
l
@dry-elephant-14928 any updates on this? Our app relies heavily on room metadata and it’s blocking one of our testing sessions.
d
this is on our list to investigate. my apologies for the delays.
l
I checked the logs and it started to return 500 Internal Server Error when trying to update the metadata…
Copy code
error: Error: Request failed with status code 500
      at createError (/var/task/index.js:7531:19)
      at settle (/var/task/index.js:7547:16)
      at IncomingMessage.handleStreamEnd (/var/task/index.js:9365:15)
      at IncomingMessage.emit (node:events:539:35)
      at IncomingMessage.emit (node:domain:475:12)
      at endReadableNT (node:internal/streams/readable:1345:12)
      at processTicksAndRejections (node:internal/process/task_queues:83:21) {
    config: {
      url: '/twirp/livekit.RoomService/UpdateRoomMetadata',
      method: 'post',
      data: '{"room":"ed5a31ef-4cf0-42d5-882b-b982759a6795","metadata":"{\\"hasStreamStarted\\":true,\\"hasStreamEnded\\":false}"}',
      headers: [Object],
      baseURL: '<https://xxxxxxxx.livekit.cloud>',
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      validateStatus: [Function: validateStatus],
      transitional: [Object]
    },
    request: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: null,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: false,
      socket: [TLSSocket],
      _header: 'POST /twirp/livekit.RoomService/UpdateRoomMetadata HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'Authorization: Bearer ......\r\n' +
        'User-Agent: axios/0.21.4\r\n' +
        'Content-Length: 113\r\n' +
        'Host: xxxxxxxx.livekit.cloud\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/twirp/livekit.RoomService/UpdateRoomMetadata',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'xxxxxxxx.livekit.cloud',
      protocol: 'https:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    response: {
      status: 500,
      statusText: 'Internal Server Error',
      headers: [Object],
      config: [Object],
      request: [ClientRequest],
      data: [Object]
    },
d
Hey @limited-flower-94405, we are able to replicate this issue and are investigating.
👌 1
Hey guys, we've made some improvements to the service so that RoomService would not incorrectly return 500. However, I'm unable to reproduce the issue where metadata update does not trigger an event sometimes Is this still happening for you guys? If so, could I get a bit more information about how I might be able to reproduce this issue?
l
Hi @dry-elephant-14928, tested it now and it seems like both issues are gone (500 and metadata not updating) 👍
🙌 1
d
awesome! thanks for the confirmation @limited-flower-94405!