Rodrigo-R
Rodrigo-R
CCConvex Community
Created by Rodrigo-R on 7/30/2024 in #support-community
Error on deploy: Cannot read properties of undefined (reading 'addHttpRoutes')
thank you very much!
5 replies
CCConvex Community
Created by Rodrigo-R on 7/30/2024 in #support-community
Error on deploy: Cannot read properties of undefined (reading 'addHttpRoutes')
never mind i just deleted auth.config.ts and it's now working again
5 replies
CCConvex Community
Created by Rodrigo-R on 7/30/2024 in #support-community
Error on deploy: Cannot read properties of undefined (reading 'addHttpRoutes')
a true wizard! i'm disabling convex auth support (temporarily). so i have
import { httpRouter } from "convex/server";
const http = httpRouter();
// auth.addHttpRoutes(http);
export default http;
import { httpRouter } from "convex/server";
const http = httpRouter();
// auth.addHttpRoutes(http);
export default http;
Now the error has changed to InvalidAuthConfig: Hit an error while pushing: I have auth.config.ts and auth.ts commented out... How do i disable Auth to get rid of this error? Thanks for your help!
5 replies
CCConvex Community
Created by Rodrigo-R on 7/23/2024 in #support-community
Convex Auth... Authenticated works but auth.getUserId(ctx) returns null
yup, but i couldn't find how to get the token, the docs only describe clerk and auth0 😦
11 replies
CCConvex Community
Created by Rodrigo-R on 7/23/2024 in #support-community
Convex Auth... Authenticated works but auth.getUserId(ctx) returns null
After long hours, It seems NextJs is not supported yet, that may be the cause?
11 replies
CCConvex Community
Created by Rodrigo-R on 7/23/2024 in #support-community
Convex Auth... Authenticated works but auth.getUserId(ctx) returns null
i'm sure i broke something, but i can't find out what :S
11 replies
CCConvex Community
Created by Rodrigo-R on 7/23/2024 in #support-community
Convex Auth... Authenticated works but auth.getUserId(ctx) returns null
thanks i'll look into it now (busy day) I have the ConvexClient (with auth) in my root layout and my auth.config.ts untouched
export default {
providers: [
{
domain: process.env.CONVEX_SITE_URL,
applicationID: "convex",
},
],
};
export default {
providers: [
{
domain: process.env.CONVEX_SITE_URL,
applicationID: "convex",
},
],
};
11 replies
CCConvex Community
Created by Rodrigo-R on 7/23/2024 in #support-community
Convex Auth... Authenticated works but auth.getUserId(ctx) returns null
it is consistently, i'll follow the guide and report back!
11 replies
CCConvex Community
Created by Rodrigo-R on 7/11/2024 in #support-community
convexAuth id of the current user on the client?
thanks!
10 replies
CCConvex Community
Created by Rodrigo-R on 7/11/2024 in #support-community
convexAuth id of the current user on the client?
indeed, but that is a good idea, i can manage with email, picture and name, i pressume that's also in the token
10 replies
CCConvex Community
Created by Rodrigo-R on 7/11/2024 in #support-community
convexAuth id of the current user on the client?
Thank you Ian, i ended up doing exactly that. I wa hoping there could be a more "fast" option, since i have to wait for the query to load (know i get why a AuthLoading is needed 😉 ) Also i don't really need reactivity for that query, but i guess it'll have to do it . All the best!
10 replies
CCConvex Community
Created by Rodrigo-R on 7/2/2024 in #support-community
subscribe to query changes on the client
let me check, pretty busy but i'll try. but the issue is basically just putting the code as it is.
3 replies
CCConvex Community
Created by Rodrigo-R on 6/24/2024 in #support-community
Custom domains for file serving?
thanks!
4 replies
CCConvex Community
Created by Rodrigo-R on 6/24/2024 in #support-community
Custom domains for file serving?
🙂
4 replies
CCConvex Community
Created by Rodrigo-R on 6/17/2024 in #support-community
Embeddings text-embedding-3-small vs text-embedding-ada-002
Thanks Ian, i was playing around, so far i can't find anything different other than the actual model.. actually i replaced my code with an example coming from convex with the same results, i'll play arround a bit more
5 replies
CCConvex Community
Created by Rodrigo-R on 6/17/2024 in #support-community
PDF Parsing - actions and mutations
cool thanks, i got back to use pdf2json with no problem using your recomendations!
11 replies
CCConvex Community
Created by Rodrigo-R on 6/17/2024 in #support-community
PDF Parsing - actions and mutations
@KinKon How did you solved the issue with the test file in pdf-parse ? Uncaught Failed to analyze process/extract.js: ENOENT: no such file or directory, open './test/data/05-versions-space.pdf'
11 replies
CCConvex Community
Created by Rodrigo-R on 6/17/2024 in #support-community
PDF Parsing - actions and mutations
thank you guys, i tried to define the internalMutation in a different file, it didn't work, but maybe i was dizzled by trying so hard, i'll give it another try and report back! Thanks for your help!
11 replies
CCConvex Community
Created by Rodrigo-R on 6/17/2024 in #support-community
PDF Parsing - actions and mutations
Sure! In order to accept that third party library (psd2json or pdf-lib) the only way the compiler accepts it is using the "use node" directive at the top of the file. When i have the contents of the file i need to store them using an internalMutation, but this mutations does that ... mutate the data using pathc. This is what the compiler is complaining: updateDocument defined in documentActions.js is a Mutation function. Only actions can be defined in Node.js. See https://docs.convex.dev/functions/actions for more details. If i remove the "use node" directive i can use internal mutations, but i can't use the external library
11 replies
CCConvex Community
Created by Rodrigo-R on 6/13/2024 in #support-community
vectorSearch, filtering 2 fields using and
works for me, it's a bit dirty, but i've done dirtiest things in my code before 😉 thank you very much!
4 replies