rairprotocol / rair-dapp

Source code for RAIRprotocol ecosystem
Apache License 2.0
1 stars 2 forks source link

Error message while deleting video from UI #40

Closed sarora180673 closed 3 weeks ago

sarora180673 commented 1 month ago

Test environment: User clones repository and with minimum environment variables(.env.sample) starts application

Scenario : User tries to Upload video and after that tries to delete the uploaded video

Observation : Since, GCP Credentials are not defined in .env file so after ffmpeg operation is completed then video files are not uploaded to GCP but still entry for video is done in mongoDB. As a result, user see a video in Videos tab. I now user tries to delete the video from UI, then error message is shown to user

rairnode Logs 7:44:44 AM web.1 | 2024-05-23T07:44:44.150Z [error] : [gcp/index.js] Can't remove file. Uninitialized 7:44:44 AM web.1 | DELETE /api/files/remove/K4KOp8dqOXsMJeR4KbJmGbjRNryH7Su5sEqnA6veLgYyzx 200 8.567 ms - 84

Expected Response:

Since the video is not uploaded to GCP so maybe we don't create MongoDB entry for the video Screenshot from 2024-05-23 13-15-34