psoren / OctaveWeb

A MERN application to listen to songs on Spotify together
https://octavemusic.herokuapp.com
0 stars 0 forks source link

503 error cannot getPlaybackInfo #65

Open psoren opened 5 years ago

psoren commented 5 years ago

When using the mongo DB database in production, we get this error. The new creator does not ping the server, and so the room is then deleted.

psoren commented 5 years ago

Make sure that if we cannot find a room, that we return some sort of json from /getPlaybackInfo to let the client know that the room was not found. Because if we do not, it is trying to convert some non-json response into json, which is causing an error.