Rank 2: Process
Hi all,
I use NuxtJS 3 with the Web SDK and a self hosted Appwrite backend. I have a dropdown select which lets me switch between video files. But if I call a video a second time I get a messedup URL.
I use the SDK in a composable to generate similar returns:
const getPreviewUrlVideo = async (fileid: string) => { const { storage } = useAppwrite(); try { const res = await storage.getFileView(VIDEO_BUCKET, fileid); return { success: true, data: res, error: null }; } catch (err) { if (err instanceof AppwriteException) { return { success: false, data: null, error: err.message, }; } else { return { success: false, data: null, error: "Unkown Error", }; } } };I used the VS Code Debugger and the URL is coming this way out of the SDK function.
Is this a Bug? Should I report it on GitHub?