Logs won't show in local environment
I've been setting up my local development environment for the first time to write and test an edge function, and something is awry in testingg. My environment variables aren't loading and I can't get logs from the local GUI dashboard.
Deploy function server in terminal doesn't show logs even when I write a simple hello world function with a console.log included that is successful.
And the edge functions logs in the local GUI shows this error:
{
"code": 502,
"errors": [],
"message": "Something went wrong! Unknown error. If this continues please contact support.",
"status": "UNKNOWN"
}
Here's what I've tried so far:
Confirmed I have the environment variables in a .env file at the project root (not within the supabase folder).
Changed deno versions to match the Supabase message (1.45.2)
Supabase Stop and Supabase Start many times
Killed all docker processes and restarted.
Added these lines to my .zshrc files
export PATH="/usr/local/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
[ -s "$DVM_DIR/dvm.sh" ] && . "$DVM_DIR/dvm.sh"
export DVM_DIR="/Users/taylorjackson/.dvm"
export PATH="$DVM_DIR/bin:$PATH" # Configure NVM (Node Version Manager)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # Load NVM
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # Load NVM bash_completion
dvm use 1.45.2
Getting a local environment setup has been such a nightmare that I'm honestly considering switching away from Supabase. I haven't coded regularly in a decade, and I've spent literally 15 hours on it. This is one of several battles with dependencies that I've fought.
Would really appreciate help!
Deploy function server in terminal doesn't show logs even when I write a simple hello world function with a console.log included that is successful.
And the edge functions logs in the local GUI shows this error:
{
"code": 502,
"errors": [],
"message": "Something went wrong! Unknown error. If this continues please contact support.",
"status": "UNKNOWN"
}
Here's what I've tried so far:
Confirmed I have the environment variables in a .env file at the project root (not within the supabase folder).
Changed deno versions to match the Supabase message (1.45.2)
Supabase Stop and Supabase Start many times
Killed all docker processes and restarted.
Added these lines to my .zshrc files
export PATH="/usr/local/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
Configure DVM (Deno Version Manager)
export DVM_DIR="$HOME/.dvm"[ -s "$DVM_DIR/dvm.sh" ] && . "$DVM_DIR/dvm.sh"
export DVM_DIR="/Users/taylorjackson/.dvm"
export PATH="$DVM_DIR/bin:$PATH" # Configure NVM (Node Version Manager)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # Load NVM
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # Load NVM bash_completion
dvm use 1.45.2
Getting a local environment setup has been such a nightmare that I'm honestly considering switching away from Supabase. I haven't coded regularly in a decade, and I've spent literally 15 hours on it. This is one of several battles with dependencies that I've fought.
Would really appreciate help!