Mordsith
Mordsith
Explore posts from servers
CCConvex Community
Created by nate on 7/2/2023 in #support-community
uploading audio file
Hi @Nicolas When I upload the same generated file from the dashboard, it works fine I'm guessing the problem is from the FileSystem.uploadAsync function in code, I'm not sure. Discord is not allowing me upload the m4a file. I'll retry with multipart/form-data
13 replies
CCConvex Community
Created by nate on 7/2/2023 in #support-community
uploading audio file
No description
13 replies
CCConvex Community
Created by nate on 7/2/2023 in #support-community
uploading audio file
No description
13 replies
CCConvex Community
Created by Mordsith on 1/20/2025 in #support-community
Debug Internal Node Errors
Thank you @Lee x @Hmza It was not an api key error but the error came from Assembly. It's related to my account plan. The issue has been resolved. I agree that the backtraces should be more readable. Thank you
4 replies
CCConvex Community
Created by Mordsith on 9/28/2024 in #support-community
Type inference issue with newly added routes
apps
api
hnotes
apps
api
hnotes
hnotes imports @api.. exisiting apis imported from api are type correctly but new functions are not typed correctly
5 replies
CCConvex Community
Created by Mordsith on 9/28/2024 in #support-community
Type inference issue with newly added routes
More info: Turbo Monorepo convex exists in another directory named api , imported with type alias @api/
5 replies
CCConvex Community
Created by Mordsith on 9/28/2024 in #support-community
Custom query with default argument
Thank you @erquhart @jamalsoueidan
5 replies
CCConvex Community
Created by Mordsith on 9/20/2024 in #support-community
Convex Auth Typescript Error with Vercel
Temporary workaround
const convexAuthData = convexAuth({
providers: [ResendOTPProvider],
});

export const auth: any = convexAuthData.auth;
export const signIn: any = convexAuthData.signIn;
export const store: any = convexAuthData.store;
export const signOut: any = convexAuthData.signOut;
const convexAuthData = convexAuth({
providers: [ResendOTPProvider],
});

export const auth: any = convexAuthData.auth;
export const signIn: any = convexAuthData.signIn;
export const store: any = convexAuthData.store;
export const signOut: any = convexAuthData.signOut;
9 replies
CCConvex Community
Created by Mordsith on 9/20/2024 in #support-community
Convex Auth Typescript Error with Vercel
More info:
"next": "15.0.0-canary.157",
"react": "19.0.0-rc-a99d8e8d-20240916",
"next": "15.0.0-canary.157",
"react": "19.0.0-rc-a99d8e8d-20240916",
9 replies
CCConvex Community
Created by Mordsith on 9/20/2024 in #support-community
Convex Auth Typescript Error with Vercel
@sshader Error still persists on vercel after upgrading to version 0.0.69
9 replies
CCConvex Community
Created by Mordsith on 9/20/2024 in #support-community
Convex Auth Typescript Error with Vercel
"@convex-dev/auth": "^0.0.67",
"convex": "^1.16.0",
"@convex-dev/auth": "^0.0.67",
"convex": "^1.16.0",
9 replies
CCConvex Community
Created by Mordsith on 9/20/2024 in #support-community
Convex Auth Typescript Error with Vercel
{
/* This TypeScript project config describes the environment that
* Convex functions run in and is used to typecheck them.
* You can modify it, but some settings required to use Convex.
*/
"compilerOptions": {
/* These settings are not required by Convex and can be modified. */
"skipLibCheck": true,
"allowJs": true,
"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
"moduleResolution": "Bundler",
"jsx": "react-jsx",
/* These compiler options are required by Convex */
"target": "ESNext",
"lib": ["ES2021", "dom"],
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"module": "ESNext",
},
"include": ["./**/*"],
"exclude": ["./src/_generated", "node_modules"]
}
{
/* This TypeScript project config describes the environment that
* Convex functions run in and is used to typecheck them.
* You can modify it, but some settings required to use Convex.
*/
"compilerOptions": {
/* These settings are not required by Convex and can be modified. */
"skipLibCheck": true,
"allowJs": true,
"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
"moduleResolution": "Bundler",
"jsx": "react-jsx",
/* These compiler options are required by Convex */
"target": "ESNext",
"lib": ["ES2021", "dom"],
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"module": "ESNext",
},
"include": ["./**/*"],
"exclude": ["./src/_generated", "node_modules"]
}
9 replies
CCConvex Community
Created by Mordsith on 8/6/2024 in #support-community
Conex Auth fatal error
That fixed it
4 replies
CCConvex Community
Created by Mordsith on 8/6/2024 in #support-community
Conex Auth fatal error
Thank you @Michal Srb
4 replies
CCConvex Community
Created by Mordsith on 7/2/2024 in #support-community
Schedulers with priority
@jamwt This is for schedulers... The flow is like this Azure Task Complete -> Trigger Convex Webhook URL -> Schedule a task to run
7 replies
CCConvex Community
Created by Mordsith on 7/2/2024 in #support-community
Schedulers with priority
@ampp No particular reason, I never considered it since it's small volume of requests at the moment. I'll add this to my setup
7 replies
CCConvex Community
Created by Mordsith on 7/6/2024 in #support-community
ConvexTest setup error
More contexts... Project is a monorepo
5 replies
CCConvex Community
Created by Mordsith on 7/6/2024 in #support-community
ConvexTest setup error
I think this may be the source of my problem
5 replies
CCConvex Community
Created by Mordsith on 7/6/2024 in #support-community
ConvexTest setup error
The convex-test package documentation is missing important information like how to use the second parameters if your functions are in nested folders.
5 replies
CCConvex Community
Created by Mordsith on 6/19/2024 in #support-community
Database seed with 70,000 items
export const processBatch = internalAction({
args: {
diagnosis: v.array(v.object(pick(diagnosisFields, ["code", "desc"])))
},
handler: async (ctx, { diagnosis }) => {
for (const { code, desc } of diagnosis) {
// Run with sceduler
try {
await ctx.runAction(internal.init.seedDiagnosis, {
code,
desc
});
} catch (err) {
console.log("Diagnosis Seed Batch Process Error", err)
}
}
}
})

export const seedDiagnosis = internalAction({
args: pick(diagnosisFields, ["code", "desc"]),
handler: async (ctx, { code, desc }) => {
try {
const diagnosisFromCode = await ctx.runQuery(
internal.routes.diagnosis.internal_queries.getDiagnosisByCode,
{
code,
},
);
// Prevent adding duplicate
if (!diagnosisFromCode) {
await ctx.runMutation(
internal.routes.diagnosis.internal_mutations.addDiagnosis,
{
code,
desc,
searchable: `${code} ${desc}`
},
);
} else if (!diagnosisFromCode.searchable) {
await ctx.runMutation(
internal.routes.diagnosis.internal_mutations.updateDiagnosis,
{
diagnosisId: diagnosisFromCode._id,
searchable: `${code} ${desc}`
},
);
}
console.log("Diagnosis Data Uploaded");
} catch (err) {
console.error("Error saving diagnosis", err);
}
},
});
export const processBatch = internalAction({
args: {
diagnosis: v.array(v.object(pick(diagnosisFields, ["code", "desc"])))
},
handler: async (ctx, { diagnosis }) => {
for (const { code, desc } of diagnosis) {
// Run with sceduler
try {
await ctx.runAction(internal.init.seedDiagnosis, {
code,
desc
});
} catch (err) {
console.log("Diagnosis Seed Batch Process Error", err)
}
}
}
})

export const seedDiagnosis = internalAction({
args: pick(diagnosisFields, ["code", "desc"]),
handler: async (ctx, { code, desc }) => {
try {
const diagnosisFromCode = await ctx.runQuery(
internal.routes.diagnosis.internal_queries.getDiagnosisByCode,
{
code,
},
);
// Prevent adding duplicate
if (!diagnosisFromCode) {
await ctx.runMutation(
internal.routes.diagnosis.internal_mutations.addDiagnosis,
{
code,
desc,
searchable: `${code} ${desc}`
},
);
} else if (!diagnosisFromCode.searchable) {
await ctx.runMutation(
internal.routes.diagnosis.internal_mutations.updateDiagnosis,
{
diagnosisId: diagnosisFromCode._id,
searchable: `${code} ${desc}`
},
);
}
console.log("Diagnosis Data Uploaded");
} catch (err) {
console.error("Error saving diagnosis", err);
}
},
});
31 replies