jayhilwig
(jayhilwig)
March 2, 2025, 1:44am
1
Seemingly simple task to upload a (small size) file to a known/created blob store. This is a shared blob store with another one of my projects.
Created a project with correct Blob env var ‘read write token’. Connected the project to v0.
Sent v0 the simple documentation about using put () etc from Vercel docs
Said it was ok to use my token value in code
Result: consistently returns Response as html instead of simple JSON response:
Upload error: Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON
Is there a template etc for this? I’m not sure why this has been a challenge, it’s all Vercel no middleware etc…
Hey @jayhilwig are you able to share a snippet of your implementation (making sure to obfuscate the token)? Also how are you calling this? Are you using server actions/route handlers, from the client, or via the sdk?
If you’re able to print the full error as well, that could help in diagnosing the issue.
jayhilwig
(jayhilwig)
March 2, 2025, 11:54pm
3
Thanks Josh, do these screenshots help at all. As an fyi, I am a designer dabbling in code
1 Like
Hmm and your token is set within the project settings?
jayhilwig
(jayhilwig)
March 3, 2025, 12:50am
5
Yes as attached. I know it’s something simple…
jayhilwig
(jayhilwig)
March 3, 2025, 3:04am
6
Vercel set up some test UI with Post/Get and we eventually resolved this, thanks for the feedback Josh!
2 Likes
glad you got it all resolved!
1 Like
system
(system)
Closed
March 10, 2025, 5:00am
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.