Alcadeus
Alcadeus5mo ago

Convex Auth with OTPs for React-Native with Expo error with verificationRequest

Android Bundled 61ms node_modules/expo-router/entry.js (1 module)
ERROR [CONVEX A(auth:signIn)] [Request ID: 028a44069ad9e8f7] Server Error
Uncaught Error: Could not send
at sendVerificationRequest [as sendVerificationRequest] (../../convex/ResendOTP.ts:22:4)
at async handleEmailAndPhoneProvider (../../node_modules/@convex-dev/auth/dist/server/implementation/signIn.js:77:23)
at async handler (../../node_modules/@convex-dev/auth/dist/server/implementation/index.js:245:20)
Error: ENOENT: no such file or directory, open '/home/convex/ResendOTP.ts'
at Object.readFileSync (node:fs:441:20)
at getCodeFrame (/home/warmachine/convexship/node_modules/metro/src/Server.js:949:18)
at Server._symbolicate (/home/warmachine/convexship/node_modules/metro/src/Server.js:1026:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Server._processRequest (/home/warmachine/convexship/node_modules/metro/src/Server.js:419:7) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/convex/ResendOTP.ts'
}
Error: ENOENT: no such file or directory, open '/home/node_modules/@convex-dev/auth/dist/server/implementation/signIn.js'
at Object.readFileSync (node:fs:441:20)
at getCodeFrame (/home/warmachine/convexship/node_modules/metro/src/Server.js:949:18)
at Server._symbolicate (/home/warmachine/convexship/node_modules/metro/src/Server.js:1026:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Server._processRequest (/home/warmachine/convexship/node_modules/metro/src/Server.js:419:7) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/node_modules/@convex-dev/auth/dist/server/implementation/signIn.js'
}
Android Bundled 61ms node_modules/expo-router/entry.js (1 module)
ERROR [CONVEX A(auth:signIn)] [Request ID: 028a44069ad9e8f7] Server Error
Uncaught Error: Could not send
at sendVerificationRequest [as sendVerificationRequest] (../../convex/ResendOTP.ts:22:4)
at async handleEmailAndPhoneProvider (../../node_modules/@convex-dev/auth/dist/server/implementation/signIn.js:77:23)
at async handler (../../node_modules/@convex-dev/auth/dist/server/implementation/index.js:245:20)
Error: ENOENT: no such file or directory, open '/home/convex/ResendOTP.ts'
at Object.readFileSync (node:fs:441:20)
at getCodeFrame (/home/warmachine/convexship/node_modules/metro/src/Server.js:949:18)
at Server._symbolicate (/home/warmachine/convexship/node_modules/metro/src/Server.js:1026:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Server._processRequest (/home/warmachine/convexship/node_modules/metro/src/Server.js:419:7) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/convex/ResendOTP.ts'
}
Error: ENOENT: no such file or directory, open '/home/node_modules/@convex-dev/auth/dist/server/implementation/signIn.js'
at Object.readFileSync (node:fs:441:20)
at getCodeFrame (/home/warmachine/convexship/node_modules/metro/src/Server.js:949:18)
at Server._symbolicate (/home/warmachine/convexship/node_modules/metro/src/Server.js:1026:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Server._processRequest (/home/warmachine/convexship/node_modules/metro/src/Server.js:419:7) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/node_modules/@convex-dev/auth/dist/server/implementation/signIn.js'
}
3 Replies
Alcadeus
AlcadeusOP5mo ago
Here is a link to my repo https://github.com/aazam-gh/convexship I have followed along the docs of convex auth and am using resend
sshader
sshader5mo ago
I recommend using console.error to log the error in here: https://github.com/aazam-gh/convexship/blob/d23d0e9a64f5ca21ed8deb3436db1a3de71664e2/convex/ResendOTP.ts#L22 You're hitting some error sending email via resend (e.g. maybe a misconfigured API key), and hopefully there's a good message that will show up if we print it out
GitHub
convexship/convex/ResendOTP.ts at d23d0e9a64f5ca21ed8deb3436db1a3de...
Contribute to aazam-gh/convexship development by creating an account on GitHub.
Alcadeus
AlcadeusOP5mo ago
Figured it out, apparently was due to using old resend package. Using the v4.0 works

Did you find this page helpful?