julius
TTCTheo's Typesafe Cult
•Created by lonelyplanet on 10/14/2024 in #questions
My upload button receives the presignedUrls from the server but when fetching the url it hangs.
Sorry that I can’t be more helpful. Not at home so can’t check our logs
25 replies
TTCTheo's Typesafe Cult
•Created by lonelyplanet on 10/14/2024 in #questions
My upload button receives the presignedUrls from the server but when fetching the url it hangs.
Yea I was thinking if you could see it entering your network at all, and that way could tell if it was blocked somewhere on the way to the uploadthing handler (eg by a reverse proxy or somthing)
Next thing you can do is enable debug logs and inspecting the request body of the request going to
REGION.ingest.uploadthing.com/route-metadata
- see what callbackUrl it’s sending and verifying that that url is matching your server. Sometimes the auto-detection isn’t 100% accurate if the right headers aren’t present25 replies
TTCTheo's Typesafe Cult
•Created by lonelyplanet on 10/14/2024 in #questions
My upload button receives the presignedUrls from the server but when fetching the url it hangs.
25 replies
TTCTheo's Typesafe Cult
•Created by lonelyplanet on 10/14/2024 in #questions
My upload button receives the presignedUrls from the server but when fetching the url it hangs.
Yes it’s blocking until your server has acknowledged the upload complete (I.e your server’s onUploadComplete has finished) - can you see any network request (POST /api/uploadthing) coming into your prod server? In total there should be 2, one from the client when they request the upload and you generate the signed url, and then one from the uploadthing server after the upload has finished that will trigger onUploadComoletr callback
25 replies
TTCTheo's Typesafe Cult
•Created by lonelyplanet on 10/14/2024 in #questions
My upload button receives the presignedUrls from the server but when fetching the url it hangs.
global middleware, some reverse proxy maybe. the callback should be treated like a webhook. it doesn't come from an authenticated user (unlike the request that hits the
.middleware()
function) so you cannot put /api/uploadthing behind auth25 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
what version of expo/expo-image-picker?
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
Expo 52 should have both encoder and decoder built-in but before then you need to use a polyfill.
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
pnpm add @uploadthing/[email protected] [email protected]
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
building
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
i have it working without resumability
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
there's like 3 levels of forks to have a maintained one though 😅
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
looking at that now
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
problem definetely feels like it's due to RNs stupid blob implementation not being sliceable
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
@sudhanshug this is how our example works from the PR that fixes the mime-type exports resolution
no errors, just doesn't get any data. what are you doing to make it error?
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
just got home from school will start to investigate this now
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
I’ll take a look and revive the PR later today. Last time I tried it everything seemingly worked except no bytes were uploaded to UT (file said uploaded and 0B on the dash)
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
there is an issue though which i've half fixed here: https://github.com/pingdotgg/uploadthing/pull/1013 but still not entiery fixed. my guess it's RNs weird blob implementation
38 replies
TTCTheo's Typesafe Cult
•Created by sudhanshug on 11/4/2024 in #questions
[Expo + UT] Error when importing @uploadthing/expo
expo 52 will have text-decoder ootb but until then you just need a polyfill
38 replies