oele-isis-vanderbilt / SyncFlow

Harmonize Your Data Streams
https://syncflow.live
Apache License 2.0
2 stars 0 forks source link

SyntaxError: Unexpected token R in JSON at position 0 at JSON.parse (<anonymous>) on Room Delete #44

Closed umesh-timalsina closed 8 months ago

umesh-timalsina commented 8 months ago

The JSON data is not correctly parsed for RoomDelete

umesh-timalsina commented 8 months ago

In CLI.

$ cargo run --bin livekit_mmla --package cli livekit delete-room --room-name LiveKitELP_5q2brq
 Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/livekit_mmla livekit delete-room --room-name LiveKitELP_5q2brq`
Error: ReqwestError(reqwest::Error { kind: Decode, source: Error("expected value", line: 1, column: 1) })

In Dashboard.

app/lib/mmlaClient.ts (115:19) @ async MMLAClient.authenticatedDelete

  113 |
  114 | if (response.ok) {
> 115 |   let data = await response.json();
      |             ^
  116 |   return new Ok<T>(data);
  117 | } else {
  118 |   try {