You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a nodejs, svelte, supabase and stripe app and have installed Supabase CLI and it seem to work but i cant upload a function that chatGPT is asking me?
The error says my function name is invalid but i tried various and it wont work? Any ideas?
`coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-checkout-handler index.js --project-ref mttvuzpzngstbibegnbm --debug
Using workdir /home/coder/projectz/tezt/boiler
Supabase CLI 2.1.1
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]$)
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-checkout-handler index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions list
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
ID │ NAME │ SLUG │ STATUS │ VERSION │ UPDATED AT (UTC)
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ ls
index.js
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripeWebhook index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripeWebhook stripeWebhook.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ supabase functions deploy stripe-webhook index.js --project-ref
supabase: command not found
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-webhook index.js --project-ref
Usage:
supabase functions deploy [Function name] [flags]
Flags:
-h, --help help for deploy
--import-map string Path to import map file.
--no-verify-jwt Disable JWT verification for the Function.
--project-ref string Project ref of the Supabase project.
Global Flags:
--create-ticket create a support ticket for any CLI error
--debug output debug logs to stderr
--dns-resolver [ native | https ] lookup domain names using the specified resolver (default native)
--experimental enable experimental features
--network-id string use the specified docker network instead of a generated one
--output [ pretty | json | toml | yaml ] output format of status variables (default pretty)
--workdir string path to a Supabase project directory
flag needs an argument: --project-ref
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-webhook index.js --project
-ref
Usage:
supabase functions deploy [Function name] [flags]
Flags:
-h, --help help for deploy
--import-map string Path to import map file.
--no-verify-jwt Disable JWT verification for the Function.
--project-ref string Project ref of the Supabase project.
Global Flags:
--create-ticket create a support ticket for any CLI error
--debug output debug logs to stderr
--dns-resolver [ native | https ] lookup domain names using the specified resolver (default native)
--experimental enable experimental features
--network-id string use the specified docker network instead of a generated one
--output [ pretty | json | toml | yaml ] output format of status variables (default pretty)
--workdir string path to a Supabase project directory
flag needs an argument: --project-ref
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-create-webhook.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/src/functions/create-stripe-checkout$ cd ..
coder@srv629479:/projectz/tezt/boiler/src/functions$ cd ..
coder@srv629479:/projectz/tezt/boiler/src$ cd ..
coder@srv629479:/projectz/tezt/boiler$ ls
README.md node_modules package-lock.json package.json server src static supabase svelte.config.js tsconfig.json vite.config.ts
coder@srv629479:/projectz/tezt/boiler$ cd supabase
coder@srv629479:/projectz/tezt/boiler/supabase$ npx supabase functions deploy ../src/functions/stripe-create-webhook/index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:/projectz/tezt/boiler/supabase$
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am making a nodejs, svelte, supabase and stripe app and have installed Supabase CLI and it seem to work but i cant upload a function that chatGPT is asking me?
The error says my function name is invalid but i tried various and it wont work? Any ideas?
`coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-checkout-handler index.js --project-ref mttvuzpzngstbibegnbm --debugcoder@srv629479:
Using workdir /home/coder/projectz/tezt/boiler
Supabase CLI 2.1.1
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]$)
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-checkout-handler index.js
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.js/projectz/tezt/boiler/src/functions/create-stripe-checkout$Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.jscoder@srv629479:
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions list
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
─────┼──────┼──────┼────────┼─────────┼───────────────────
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe index.js/projectz/tezt/boiler/src/functions/create-stripe-checkout$Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ ls/projectz/tezt/boiler/src/functions/create-stripe-checkout$index.js
coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripeWebhook index.js/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripeWebhook stripeWebhook.jsUsing workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ supabase functions deploy stripe-webhook index.js --project-ref/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-webhook index.js --project-refsupabase: command not found
coder@srv629479:
Usage:
supabase functions deploy [Function name] [flags]
Flags:
-h, --help help for deploy
--import-map string Path to import map file.
--no-verify-jwt Disable JWT verification for the Function.
--project-ref string Project ref of the Supabase project.
Global Flags:
--create-ticket create a support ticket for any CLI error
--debug output debug logs to stderr
--dns-resolver [ native | https ] lookup domain names using the specified resolver (default native)
--experimental enable experimental features
--network-id string use the specified docker network instead of a generated one
--output [ pretty | json | toml | yaml ] output format of status variables (default pretty)
--workdir string path to a Supabase project directory
flag needs an argument: --project-ref
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:~/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-webhook index.js --project
-ref
Usage:
supabase functions deploy [Function name] [flags]
Flags:
-h, --help help for deploy
--import-map string Path to import map file.
--no-verify-jwt Disable JWT verification for the Function.
--project-ref string Project ref of the Supabase project.
Global Flags:
--create-ticket create a support ticket for any CLI error
--debug output debug logs to stderr
--dns-resolver [ native | https ] lookup domain names using the specified resolver (default native)
--experimental enable experimental features
--network-id string use the specified docker network instead of a generated one
--output [ pretty | json | toml | yaml ] output format of status variables (default pretty)
--workdir string path to a Supabase project directory
flag needs an argument: --project-ref
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$/projectz/tezt/boiler/src/functions/create-stripe-checkout$coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions/create-stripe-checkout$ npx supabase functions deploy stripe-create-webhook.js/projectz/tezt/boiler/src/functions/create-stripe-checkout$ cd ..Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/src/functions$ cd ../projectz/tezt/boiler/src$ cd ..coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler$ ls/projectz/tezt/boiler$ cd supabaseREADME.md node_modules package-lock.json package.json server src static supabase svelte.config.js tsconfig.json vite.config.ts
coder@srv629479:
coder@srv629479:
/projectz/tezt/boiler/supabase$ npx supabase functions deploy ../src/functions/stripe-create-webhook/index.js/projectz/tezt/boiler/supabase$Using workdir /home/coder/projectz/tezt/boiler
Selected project: mttvuzpzngstbibegnbm
WARN: no seed files matched pattern: supabase/seed.sql
Invalid Function name. Must start with at least one letter, and only include alphanumeric characters, underscores, and hyphens. (^[A-Za-z][A-Za-z0-9_-]*$)
Try rerunning the command with --debug to troubleshoot the error.
coder@srv629479:
`
Beta Was this translation helpful? Give feedback.
All reactions