cli
cli copied to clipboard
`over_sms_send_rate_limit` Error appears with `test_otp` numbers
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Add the following to the
config.toml
[auth.sms.test_otp]
# Used for logging in for our CI tests
12223334444 = "555555"
- Create a CI suite that logs in as this user multiple times
Expected behavior A clear and concise description of what you expected to happen.
Since this number is listed under test_otp, I expect it to be allowed to not have a rate limit.
Actual behavior
The test OTP number hits a rate limit in CI
[WebServer] Error sending OTP: AuthApiError: For security purposes, you can only request this after 3 seconds.
[WebServer] at handleError (/home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]/node_modules/@supabase/auth-js/dist/main/lib/fetch.js:69:11)
[WebServer] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[WebServer] at async _handleRequest (/home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]/node_modules/@supabase/auth-js/dist/main/lib/fetch.js:114:9)
[WebServer] at async _request (/home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]/node_modules/@supabase/auth-js/dist/main/lib/fetch.js:95:18)
[WebServer] at async SupabaseAuthClient.signInWithOtp (/home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:538:41)
[WebServer] at async POST (file:///home/runner/work/myapp/myapp/.svelte-kit/output/server/entries/endpoints/driver/login/_server.ts.js:16:31)
[WebServer] at async render_endpoint (file:///home/runner/work/myapp/myapp/.svelte-kit/output/server/index.js:262:22)
[WebServer] at async resolve2 (file:///home/runner/work/myapp/myapp/.svelte-kit/output/server/index.js:3914:22)
[WebServer] at async /home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@_5um6fobgyyqwgl7p3jx2n7q274/node_modules/@sentry/sveltekit/build/cjs/server/handle.js:131:21
[WebServer] at async instrumentHandle (/home/runner/work/myapp/myapp/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@_5um6fobgyyqwgl7p3jx2n7q274/node_modules/@sentry/sveltekit/build/cjs/server/handle.js:117:27) {
[WebServer] __isAuthError: true,
[WebServer] status: 429,
[WebServer] code: 'over_sms_send_rate_limit'
[WebServer] }
System information
- Ticket ID: Running in a GitHub runner
- Version of OS: Ubuntu 22.04
- Version of CLI: 2.19.5
- Version of Docker: Running in a GitHub runner
- Versions of services: Running in a GitHub runner
see also: https://github.com/supabase/cli/issues/3353