Pauline P. Narvas Hi, @engamin1! From the error you're seeing, it looks like the issue is coming from how the client token is being generated during your upload flow. The “Failed to retrieve the client token” message usually means something’s off in that token generation step that enables uploads from the client side. Here are a few things worth checking: Your API Route Setup Double-check that your /api/upload endpoint is set up to support the client upload process. It should handle generating the token correctly and allow the upload to complete without issues. Environment Variables Make sure the BLOB_READ_WRIT
Eng Amin The error is only occurring in the v0 preview but after deployment the upload is perfect working. So i got this after i published the error Thnks
Pauline P. Narvas How are you calling them right now? Can you show any examples?
Dancho8 It was very strange, but when I opened the development environment today, the server action that was causing the error was working normally. I thought that the policy for the v0 server action had been updated, so I spent the whole day yesterday converting all server action processing to API Routes... but it turned out that there was no need to do that. (I ended up using up a lot of credits for that( ノД)…) Anyway, I don't know what the cause was, but it has been restored. However, if something like this happens again in the future, it will be a big problem. When building server-side logic, I pr