coochie boy sniped you
coochie boy sniped you
CCConvex Community
Created by coochie boy sniped you on 3/22/2025 in #support-community
how do i install ssl on my selfhosted docker deploy?
My convex react client wont connect to my selfhosted docker convex backend because i cant use wss because its http
6 replies
CCConvex Community
Created by coochie boy sniped you on 3/21/2025 in #support-community
file storage on selfhosted? how does this work? do i have to use s3
I am a minor so it inconvenient to access s3. to use file storage do i need to use s3?
8 replies
CCConvex Community
Created by coochie boy sniped you on 3/18/2025 in #support-community
Fetch runs out after a minute in my "use node" action
"use node";
import { api } from "./_generated/api";
export async function generateAndUploadVideo(ctx,auth,title,script,tags){
let url = process.env.MOVIEAPI_URL+"/generate";
if(auth == null){
return;
}
let videoResponse = await fetch(url,{
method:"POST",
body:JSON.stringify({
"script":script
}),
keepalive:true
});//This line always times out at a minute
let video = await videoResponse.blob();
const storageId = await ctx.storage.store(video);
await ctx.runMutation(api.video.storeVideo,{
video:storageId,
title:title,
creator:auth,
tags:tags
});

await ctx.runAction(api.googleActions.uploadToYoutube,{
video:storageId,
title:title,
user:auth,
tags:tags
});

}
"use node";
import { api } from "./_generated/api";
export async function generateAndUploadVideo(ctx,auth,title,script,tags){
let url = process.env.MOVIEAPI_URL+"/generate";
if(auth == null){
return;
}
let videoResponse = await fetch(url,{
method:"POST",
body:JSON.stringify({
"script":script
}),
keepalive:true
});//This line always times out at a minute
let video = await videoResponse.blob();
const storageId = await ctx.storage.store(video);
await ctx.runMutation(api.video.storeVideo,{
video:storageId,
title:title,
creator:auth,
tags:tags
});

await ctx.runAction(api.googleActions.uploadToYoutube,{
video:storageId,
title:title,
user:auth,
tags:tags
});

}
The fetch in this function always times out at 60 seconds.
11 replies
CCConvex Community
Created by coochie boy sniped you on 3/14/2025 in #support-community
What is up with "use node" fetch?
Tiktok response when rendered
19 replies
CCConvex Community
Created by coochie boy sniped you on 3/7/2025 in #support-community
Http Action no authentication
export const generateUrlForToken = httpAction(async (ctx, request)=>{
const identity = await ctx.auth.getUserIdentity();

if(identity == null){
return new Response("No identity found",{
status:401,
headers:{
"Access-Control-Allow-Origin": process.env.CLIENT_ORIGIN,
"Vary": "origin",
}
});
}
});
export const generateUrlForToken = httpAction(async (ctx, request)=>{
const identity = await ctx.auth.getUserIdentity();

if(identity == null){
return new Response("No identity found",{
status:401,
headers:{
"Access-Control-Allow-Origin": process.env.CLIENT_ORIGIN,
"Vary": "origin",
}
});
}
});
The identity keeps returning null in my http action. I plugged in the Auth0 access token in the request header as shown below.
const link = await (await fetch("https://blablabla.convex.site/tiktokAuth", {
method:"GET",
headers: { Authorization: `Bearer ${await getAccessTokenSilently()}` }
})).text();
const link = await (await fetch("https://blablabla.convex.site/tiktokAuth", {
method:"GET",
headers: { Authorization: `Bearer ${await getAccessTokenSilently()}` }
})).text();
And I see in the network tab that it does send over the Authorization header and I logged it in the http action and it does send over. But for some reason I never get the identity object. Thanks for ur guys help
5 replies
CCConvex Community
Created by coochie boy sniped you on 3/7/2025 in #support-community
useAuthToken hook is not working with Auth0. it returns null
<Auth0Provider
domain="redacted"
clientId="redacted"
authorizationParams={{
redirect_uri: window.location.origin,
}}
useRefreshTokens={true}
cacheLocation="localstorage">
<ConvexProviderWithAuth0 client={convex}>
<App />
</ConvexProviderWithAuth0>
</Auth0Provider>
<Auth0Provider
domain="redacted"
clientId="redacted"
authorizationParams={{
redirect_uri: window.location.origin,
}}
useRefreshTokens={true}
cacheLocation="localstorage">
<ConvexProviderWithAuth0 client={convex}>
<App />
</ConvexProviderWithAuth0>
</Auth0Provider>
import { useAuthToken } from "@convex-dev/auth/react";
const token = useAuthToken();

//later on
<button onClick={
async () => {
alert(token);
}
}>Get Token</button>
//Alerts null when clicked and is null in my api requests
import { useAuthToken } from "@convex-dev/auth/react";
const token = useAuthToken();

//later on
<button onClick={
async () => {
alert(token);
}
}>Get Token</button>
//Alerts null when clicked and is null in my api requests
12 replies
CCConvex Community
Created by coochie boy sniped you on 2/5/2025 in #support-community
how do i use convex auth without react.
do i just make a hyperlink in my html to blabla.convex.site/api/auth/signin/google?code=igeneratethegibberishmyselfontheclient
2 replies