bed
bed
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
me too! this is what I'm building if you are intrested https://fileconverterai.com
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
Thanks guys
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
I'm not sure what was wrong - maybe the install I'm not sure
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
its working!
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
^ that's the result
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
I think the env is not getting loaded correctly
console.log("process.env.UPLOADTHING_TOKEN", process.env.UPLOADTHING_TOKEN);
console.log("process.env.UPLOADTHING_TOKEN", process.env.UPLOADTHING_TOKEN);
process.env.UPLOADTHING_TOKEN c
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
13:44:27 [ERROR] ((Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string)) <-> ((JsonString <-> unknown) <-> (Struct (Encoded side) <-> Struct (Type side)))) └─ Encoded side transformation failure └─ (Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string)) └─ Encoded side transformation failure └─ Uint8ArrayFromBase64 └─ Transformation process failure └─ Length must be a multiple of 4, but is 1 Stack trace:
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
did just now
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
13:43:41 [ERROR] UploadThingToken is not defined
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
On it
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
dies this work with astro? I'm using uploadthing from the server
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
its not could I dm it to you?
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
should I update my package json?
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
still the same error
Error processing worker message: Error: Invalid upload result: {"data":null,"error":{"message":"Invalid token. A token is a base64 encoded JSON object matching { apiKey: string, appId: string, regions: string[] }.","_tag":"UploadThingError","name":"UploadThingError","code":"INVALID_SERVER_CONFIG","cause":{"_op":"InvalidData","path":["token"],"message":"((Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string)) <-> ((JsonString <-> unknown) <-> (Struct (Encoded side) <-> Struct (Type side))))\n└─ Encoded side transformation failure\n └─ (Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string))\n └─ Encoded side transformation failure\n └─ Uint8ArrayFromBase64\n └─ Transformation process failure\n └─ Length must be a multiple of 4, but is 1"}}}
at eval (/Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai/src/pages/api/convert.ts:224:21)
at Array.map (<anonymous>)
at Worker.eval (/Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai/src/pages/api/convert.ts:222:47)
Error processing worker message: Error: Invalid upload result: {"data":null,"error":{"message":"Invalid token. A token is a base64 encoded JSON object matching { apiKey: string, appId: string, regions: string[] }.","_tag":"UploadThingError","name":"UploadThingError","code":"INVALID_SERVER_CONFIG","cause":{"_op":"InvalidData","path":["token"],"message":"((Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string)) <-> ((JsonString <-> unknown) <-> (Struct (Encoded side) <-> Struct (Type side))))\n└─ Encoded side transformation failure\n └─ (Uint8ArrayFromBase64 <-> (Uint8ArrayFromSelf <-> string))\n └─ Encoded side transformation failure\n └─ Uint8ArrayFromBase64\n └─ Transformation process failure\n └─ Length must be a multiple of 4, but is 1"}}}
at eval (/Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai/src/pages/api/convert.ts:224:21)
at Array.map (<anonymous>)
at Worker.eval (/Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai/src/pages/api/convert.ts:222:47)
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
I check node modules as well to confirm these versions
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
[email protected] /Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai └── @uploadthing/[email protected]
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
[email protected] /Users/malik/Desktop/Programs/naturual-language-file-conversion/file-converter-ai ├─┬ @uploadthing/[email protected] │ └── [email protected] deduped └── [email protected]
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
how so?
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
I think so yes
57 replies
TTCTheo's Typesafe Cult
Created by bed on 12/17/2024 in #questions
UploadThing invalid secret error, invalid server config
that's what I have in package.json
57 replies