Troubleshooting Guide
Before seeking additional help, confirm that the following items are installed and configured correctly:
- PostgreSQL is running on the system.
- You can connect to the Postgres server with psql using the expected connection string.
- The
ANTHROPIC_API_KEYis set in the MCP server configuration file. - The database connection is configured at server startup using environment variables, a config file, or command-line flags.
- The path to the binary is absolute and not relative.
- Claude Desktop has been restarted after any configuration changes.
- You have checked the Claude Desktop logs for errors.
- The server logs show the
Starting stdio server loop...message. - The
ANTHROPIC_API_KEYis set for natural language queries. - The database has at least one user table.
- Your user has permissions to read the
pg_catalogschema.
If you are still experiencing issues after trying the solutions on this page, you should follow these steps to gather diagnostic information:
- Check the logs with timestamps and error messages to understand what is failing.
- Test the database connection independently using psql or another tool.
- Verify that all environment variables are set correctly in your configuration.
- Try running the test script using the command
./test-connection.sh. - Check the PostgreSQL logs for connection attempts and errors.
The following sections address common problems, sorted by related topics.
Troubleshooting Build Issues
When building and deploying the MCP server and agent, you may encounter several common issues. This section provides solutions that help you check version requirements, port conflicts, database connectivity problems, Docker networking, and certificate validation.
Checking Go Version Requirements
The project requires Go version 1.21 or higher. If you're building from source, you can check your Go version using the following command:
go version
Resolving Dependency Issues
If you encounter dependency problems when building from source, you can resolve them by updating and downloading the required modules. In the following example, the commands tidy the module dependencies and download all required packages.
go mod tidy
go mod download
Removing Build Artifacts and Performing a Clean Build from Source
If the build fails or produces unexpected results, you can perform a clean build. In the following example, the commands remove previous build artifacts and rebuild the project from scratch.
make clean
make build
# or
go clean
go build -o bin/pgedge-postgres-mcp ./cmd/pgedge-pg-mcp-svr
Port Already in Use
If the server fails to start because the port is already in use, you can
identify the process with the lsof command; the lsof command shows
which process is using the port so you can kill off the process, or use
a different port with the -addr flag.
lsof -i :8080
# Kill the process or use a different port with -addr
Testing Failed Database Connections
If the database connection fails during the build or deployment process,
you can test the connection independently with a Postgres client. In the
following example, the psql command tests a direct connection to the
database, and the env command displays PostgreSQL-related environment
variables.
# Test connection directly
psql -h localhost -U postgres -d mydb -c "SELECT 1"
# Check environment variables
env | grep PG
Testing a Failed Database Connection on Docker
If Docker containers cannot reach the host database, the connection string may be the issue. The Docker connection string is operating system-specific.
- On macOS and Windows, you should use
host.docker.internalas the hostname. - On Linux, you should use
172.17.0.1or configure a Docker network bridge.
Troubleshooting Configuration Issues
This section provides solutions for common configuration file issues.
Verifying the Configuration File
If the configuration file is not loading properly, you can verify the
file exists and check permissions. In the following example, the ls
command checks for the configuration file, the server is started with an
explicit path, and the chmod command verifies that the file has the
correct permissions.
# Check if config file exists
ls -la bin/pgedge-postgres-mcp.yaml
# Use explicit path
./bin/pgedge-postgres-mcp -config /full/path/to/config.yaml
# Check file permissions
chmod 600 bin/pgedge-postgres-mcp.yaml # Should be readable
Method not found
This error indicates that an unknown MCP method was called. The following issues may cause this error:
- The method name is unknown to the server.
- The protocol version may not be compatible with the server version.
- You should update the server if you are using an old version.
Troubleshooting Database Connection Issues
Database connection problems are a common cause of server exits. If you have a connection issue, you should check the log files for connection errors.
Failed to connect to database: authentication failed
This error indicates that authentication to the database failed. The following issues may cause this error:
- The username or password in the connection string is incorrect.
- The
pg_hba.conffile has authentication rules that prevent the connection. - You should try a different authentication method such as trust, md5, or scram-sha-256.
Failed to connect to database: database does not exist
This error indicates that the specified database does not exist. The following issues may cause this error:
- The database name in the connection string is wrong.
- The database has not been created yet.
- You can check the available databases using the command
psql -l.
Failed to connect to database: connection refused
This error indicates that the database connection was refused. The following issues may cause this error:
- PostgreSQL is not running on the target system.
- The host or port in the connection string is incorrect.
- A firewall is blocking the connection to the database.
If you see an error message like [pgedge-postgres-mcp] ERROR: Failed to
connect to database: ..., you should investigate the following issues:
Test the PostgreSQL Connection Directly
You can verify that the connection string works by testing the
connection with psql. In the following example, the psql commands test
the connection using the full connection string.
# Using psql
psql "postgres://username:password@localhost:5432/database"
# Or test connection string directly
psql "postgres://user:pass@localhost:5432/db?sslmode=disable"
Verify the Connection String Format
The connection string must follow the correct PostgreSQL format. In the following example, the comments show the correct format and provide sample connection strings for different authentication scenarios.
# Correct format:
postgres://username:password@host:port/database?sslmode=disable
# Examples:
postgres://postgres:mypassword@localhost:5432/mydb?sslmode=disable
postgres://user@localhost/dbname?sslmode=disable # local trusted
auth
Check for common connection string issues
The following items are common problems with connection strings:
- The
?sslmode=disableparameter is missing for local development. - The port is wrong; the default PostgreSQL port is 5432.
- The database name is incorrect.
- The username or password is invalid.
- The database is not running.
Verify that PostgreSQL is running
You can check if the PostgreSQL service is running on your system. In the following example, the commands check the service status on macOS using Homebrew, on Linux using systemd, and verify that port 5432 is listening.
# macOS (Homebrew)
brew services list | grep postgresql
# Linux (systemd)
systemctl status postgresql
# Check if port 5432 is listening
lsof -i :5432
# or
netstat -an | grep 5432
Verify the Existence of Required Environment Variables
If environment variables are missing, the server may fail to start or lack LLM functionality. The following environment variables are required depending on your configuration:
- The
ANTHROPIC_API_KEYvariable is required if you are using Anthropic for Claude API access. - An Ollama configuration is required if you are using Ollama instead of Anthropic.
You should check your MCP configuration file to ensure the environment
variables are set correctly. On macOS, the configuration file is located
at ~/Library/Application Support/Claude/claude_desktop_config.json. In
the following example, the JSON configuration shows how to set the API
key and specify the server command using an absolute path.
{
"mcpServers": {
"pgedge": {
"command": "/absolute/path/to/bin/pgedge-postgres-mcp",
"env": {
"ANTHROPIC_API_KEY": "sk-ant-your-key-here"
}
}
}
}
When configuring the environment, keep the following points in mind:
- You must use absolute paths; relative paths and the
~shortcut are not supported. - You should check for typos in environment variable names.
- You must restart Claude Desktop after making configuration changes.
- Database connections are configured at server startup via environment variables, a config file, or command-line flags.
Database Metadata Loading Issues
If the server fails to load database metadata, you should check the logs
for error messages. An error message like [pgedge-postgres-mcp] ERROR:
Failed to load database metadata: ... indicates a metadata loading
problem.
You should verify the following items to resolve metadata loading issues:
Check Database Permissions
Your user account needs permission to read the system catalogs. In the
following example, SQL queries test whether you can read from the
pg_class and pg_namespace system tables.
-- Your user needs permission to read system catalogs
SELECT * FROM pg_class LIMIT 1;
SELECT * FROM pg_namespace LIMIT 1;
Verify that the Database has Tables
If your database is empty and contains no user tables, the server will still start but will not have any metadata. This behavior is expected; you will need to add tables to the database before the metadata becomes available. Create the user tables in non-system schemas.
You can use the following SQL query to retrieve a list of tables from non-system schemas:
-- Check for tables in non-system schemas
SELECT schemaname, tablename
FROM pg_tables
WHERE schemaname NOT IN ('pg_catalog', 'information_schema');
Troubleshooting Authentication Errors
This section describes common authentication error responses and their solutions.
authentication failed: invalid username or password
If you provide incorrect credentials, the server returns an authentication failed error. In the following example, the JSON-RPC response shows a tool execution error with a message indicating invalid username or password.
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32603,
"message": "Tool execution error",
"data": "authentication failed: invalid username or password"
}
}
authentication failed: user account is disabled
If you attempt to authenticate with a disabled user account, the server returns an error. In the following example, the JSON-RPC response indicates that the user account is disabled.
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32603,
"message": "Tool execution error",
"data": "authentication failed: user account is disabled"
}
}
If you encounter this error, you should re-authenticate with an active account to obtain a new session token.
Server Won't Start with Authentication Enabled
If authentication is enabled but no token file exists, the server will not start. In the following example, you can either create a token file or disable authentication temporarily.
# Option 1: Create a token file
./bin/pgedge-postgres-mcp -add-token
# Option 2: Disable auth temporarily
./bin/pgedge-postgres-mcp -http -no-auth
SSL Certificate Issues
If you encounter SSL certificate errors during connection, you should
verify that the certificate matches the key. In the following example,
the openssl commands generate an MD5 hash for both the certificate and
the key; those hashes should match. The second command checks the
certificate expiration date.
# Verify certificate matches key
openssl x509 -noout -modulus -in server.crt | openssl md5
openssl rsa -noout -modulus -in server.key | openssl md5
# Both should match
# Check expiration
openssl x509 -in server.crt -noout -dates
Troubleshooting Token Management
This section addresses issues related to authentication tokens and token file management.
Token Authentication Fails
If token authentication fails, you should verify that the token file exists, has the correct permissions, and is valid. In the following example, the commands check the token file permissions, list available tokens, and identify expired tokens.
# Check token file exists and has correct permissions
ls -la pgedge-postgres-mcp-tokens.yaml # Should show -rw------- (600)
# List tokens to verify token exists
./bin/pgedge-postgres-mcp -list-tokens
# Check for expired tokens
./bin/pgedge-postgres-mcp -list-tokens | grep "Status: Expired"
Token File Not Found
If the server cannot find the token file, you will see an error message indicating the file path and suggesting solutions. In the following example, the error message shows the expected token file path and provides commands to create a token or disable authentication.
# Error message:
ERROR: Token file not found: /path/to/pgedge-postgres-mcp-tokens.yaml
Create tokens with: ./pgedge-postgres-mcp -add-token
Or disable authentication with: -no-auth
You can create a new token file with the following command:
# Create first token
./bin/pgedge-postgres-mcp -add-token
Expired Session Token
If your session token has expired, the server returns an unauthorized error with HTTP status 401. In the following example, the JSON response shows an "Unauthorized" error message.
{
"error": "Unauthorized"
}
Cannot Remove Token
If you cannot remove a token because the hash is not found, you need to use at least 8 characters of the hash. In the following example, the commands list the available tokens to get the full hash, then remove the token using at least 8 characters from the hash.
# Error: Token not found
# Solution: Use at least 8 characters of the hash
./bin/pgedge-postgres-mcp -list-tokens # Get the hash
./bin/pgedge-postgres-mcp -remove-token b3f805a4 # Use 8+ chars
Troubleshooting Web Client Issues
This section addresses common issues you might encounter when using the web client interface.
Web Client Connection Issues
If you see a red connection indicator in the web client, you should check the following items:
- The MCP server is running.
- The database credentials in the server configuration are correct.
- The network connectivity to the database host is working properly.
Improving Slow Response Times
If the web client experiences slow response times, you can try the following solutions:
- You can try a faster model such as
claude-sonnetinstead ofclaude-opus. - You can enable response streaming in the server configuration.
- You should check your LLM provider's rate limits to ensure you are not being throttled.
Resolving Authentication Errors
If you encounter authentication errors in the web client, you should verify the following:
- Your username and password are correct.
- The user exists; you can use the
-list-usersflag on the server to verify. - Authentication is enabled in the server configuration.
Troubleshooting CLI Client Issues
This section provides solutions for common issues encountered when using the CLI client.
Failed to connect to MCP server
If you see the error "Failed to connect to MCP server", you should verify the following items:
- In
stdiomode, the server path is correct; use-mcp-server-path ./bin/pgedge-postgres-mcp. - In
HTTPmode, the URL is correct; use-mcp-url http://localhost:8080. - The MCP server is running when using HTTP mode.
- The authentication token is set when using HTTP mode with authentication enabled.
LLM error: authentication failed
If you see the error "LLM error: authentication failed", you should check the following items:
- For Anthropic, you should verify that the
ANTHROPIC_API_KEYenvironment variable is set correctly. - For Ollama, you should verify that Ollama is running using
ollama serveand that the model is pulled usingollama pull llama3. - The model name is correct in your configuration.
If you see the error "Ollama: model not found", you need to pull the
required model. In the following example, the ollama list command
displays available models, and the ollama pull command downloads the
model you want to use.
# List available models
ollama list
# Pull the model you want to use
ollama pull llama3
Configuration error: invalid mode
If you see the error "Configuration error: invalid mode", you should verify the following:
- The valid modes are
stdioorhttp. - Your configuration file or command-line flags are correct.
- The mode must be specified if you are not using the default mode.
If you see the error "Missing API key for Anthropic", you have several options to resolve the issue:
- You can set the
PGEDGE_ANTHROPIC_API_KEYenvironment variable. - You can add the
anthropic_api_keyto your configuration file under thellm:section. - You can use the
-anthropic-api-keycommand-line flag when starting the client.
Terminal and Display Issues
If colors look wrong or garbled in the terminal, you can disable color output using one of the following methods:
- You can disable colors with the
NO_COLOR=1environment variable. - You can use the
-no-colorcommand-line flag. - You can add
no_color: trueto your configuration file under theui:section.
The command history file is created automatically on first use. If command history is not working properly, you should check the following items:
- The
~/.pgedge-nla-cli-historyfile exists and is writable. - On some terminals, the readline features may be limited.
Troubleshooting Natural Language Query Issues
This section addresses issues that impair natural language query functionality. The following symptoms indicate a problem with natural language queries:
- The
query_databasetool exists but returns errors when called. - You see an error message stating
ANTHROPIC_API_KEY not set.
ANTHROPIC_API_KEY not set
You should try the following solutions to resolve natural language query issues:
Obtain an API Key from Anthropic
If you do not have an API key, you can create one by visiting the Anthropic console. You should visit https://console.anthropic.com/ and create an account or sign in. You can then go to the API Keys section and create a new key.
Verify that the API Key Works
You can test the API key to ensure that the API key is valid and that
your account has access. In the following example, the curl command
sends a test request to the Anthropic API to verify the key.
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $PGEDGE_ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'
Set the API Key in your Configuration You need to add the API key
to the environment section of your MCP configuration. In the following
example, the JSON snippet shows how to set the ANTHROPIC_API_KEY
environment variable.
"env": {
"ANTHROPIC_API_KEY": "sk-ant-your-actual-key-here"
}
Check your API Credits You should ensure that your Anthropic account has available credits. You can check your usage and credit balance at https://console.anthropic.com/.
Troubleshooting SQL Generation Issues
The following symptoms indicate issues with SQL generation:
- A query returns wrong results that do not match your expectations.
- The generated SQL does not match your expectations or intent.
- The generated SQL contains syntax errors.
Claude can help by displaying the generated SQL to help diagnose unexpected results; include a request for the SQL with your query request:
"Show me users created today and display the SQL query"
If you find your queries are taking too long:
- Check and refresh database indexes.
- Use read replicas when performing analytics.
- Limit result sets to a finite set:
Show me top 100 users
Use the following solutions to improve SQL generation quality:
Add Database Comments to Improve SQL Generation
The quality of generated SQL depends heavily on the presence of schema comments. In the following example, the SQL commands add comments to a table and a column to provide context for the LLM.
COMMENT ON TABLE customers IS 'Customer accounts and contact information';
COMMENT ON COLUMN customers.status IS 'Account status: active,
inactive, or suspended';
You can see more examples of effective comments in the
example_comments.sql file.
Check the Schema Information
You can ask Claude to show you the database schema by sending the message "Show me the database schema". This command will reveal what information the LLM has about your database structure.
Be More Specific in your Queries
Vague requests may produce incorrect results. Instead of asking "Show me recent data", you should try a more specific request like "Show me all orders from the last 7 days ordered by date".
Review the Generated SQL and Provide Feedback
The response includes the generated SQL query. If the SQL is wrong, you have several options:
- You can provide feedback in your next message to refine the query.
- You can add more schema comments to provide additional context.
- You can rephrase your question to be more specific.
Troubleshooting Knowledgebase Issues
Common Knowledgebase issues and their solutions are listed below.
No Results Found
Cause: Query may be too specific or use terminology not in the documentation.
Solution: Try broader search terms or rephrase the query.
Wrong Project Results
Cause: Not filtering by project name.
Solution: Add project_name parameter to filter results.
Embedding Provider Mismatch
Cause: Server embedding provider differs from the one used to build the database.
Solution: Configure the server to use the same embedding provider. The database contains embeddings from multiple providers - the server will automatically use the one that matches its configuration.
Knowledgebase Not Available
Cause: Knowledgebase not enabled in configuration or database file missing.
Solution: Check server configuration and verify database_path points
to a valid knowledgebase database file.
Troubleshooting Custom Definitions
Common issues and their solutions are listed below.
File Not Loading
If the server logs an error about a missing file, check that the:
- File path is absolute or relative to server working directory.
- File exists and is readable.
- File extension is
.json,.yaml, or.yml.
Validation Errors
If the server exits with validation error:
- Check the error message for a specific issue.
- Verify all required fields are present.
- Ensure names/URIs are unique.
- Confirm template placeholders reference defined arguments.
SQL Errors
If a resource returns SQL error:
- Test the query directly in psql.
- Check table and column names.
- Verify the user has necessary permissions.
- Ensure query syntax is valid for your PostgreSQL version.
Template Not Interpolating
If you are seeing a literal {{arg_name}} in output:
- Verify the argument is declared in
argumentssection. - Check the argument name matches exactly (case-sensitive).
- Ensure you passed the argument when calling the prompt.
Troubleshooting Tool Issues
This section provides solutions for issues where the server connects but the tools do not appear in the Claude interface. Look for the following symptoms:
- The server connects but the tools do not appear in the Claude UI.
- The
query_databaseorget_schema_infotools are not available.
You should try the following solutions to resolve this issue:
Verify that the Server is Connected
You should check the Claude Desktop logs for connection status. Look for
a message like [pgedge] [info] Server started and connected
successfully to confirm the connection.
Restart Claude Desktop
Changes to the MCP configuration require a full restart of the application. You should quit Claude Desktop completely rather than just closing the window, then reopen the application.
Check the MCP Configuration Syntax
The configuration file must be valid JSON. A parse error indicates that the JSON in a request is invalid. You should check the Claude Desktop logs to see the actual request that was sent to the server.
In the following example, the JSON configuration shows the required format with the server command and environment variables.
{
"mcpServers": {
"pgedge": {
"command": "/full/path/to/bin/pgedge-postgres-mcp",
"env": {
"ANTHROPIC_API_KEY": "..."
}
}
}
}
You should verify the following items in your configuration:
- The configuration must be valid JSON; you can use a JSON validator to check.
- There should be no trailing commas in the JSON structure.
- All strings must be quoted properly.
Test the Server Manually
You can test the server manually to verify that the tools are available. In the following example, the commands set the API key, configure the database connection, and send a JSON-RPC request to list available tools.
export ANTHROPIC_API_KEY="..."
# Configure database connection via environment variables or config file
# before running
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | \
./bin/pgedge-postgres-mcp
Troubleshooting Embedding Generation Issues
This section addresses problems with the embedding generation feature. The following symptoms indicate issues with embedding generation:
- The
generate_embeddingtool is not available. - Embedding generation returns errors when called.
- You receive rate limit errors from the Anthropic API.
- You are experiencing high embedding API costs.
Enable Embedding Logging
To understand embedding API usage and debug rate limits, you can enable structured logging. In the following example, the commands set different log levels and run the server with logging enabled.
# Set log level
export PGEDGE_LLM_LOG_LEVEL="info" # Basic info: API calls, errors
export PGEDGE_LLM_LOG_LEVEL="debug" # Detailed: text length,
# dimensions, timing
export PGEDGE_LLM_LOG_LEVEL="trace" # Very detailed: full
# request/response
# Run the server
./bin/pgedge-postgres-mcp
The log output will show detailed information about embedding operations. In the following example, the log messages show provider initialization, successful API calls, and rate limit errors.
[LLM] [INFO] Provider initialized: provider=ollama,
model=nomic-embed-text, base_url=http://localhost:11434
[LLM] [INFO] API call succeeded: provider=ollama,
model=nomic-embed-text, text_length=245, dimensions=768,
duration=156ms
[LLM] [INFO] RATE LIMIT ERROR: provider=anthropic,
model=voyage-3-lite, status_code=429,
response={"error":"rate_limit_error"...}
The logging helps you identify the following information:
- The number of embedding API calls being made.
- The text length being embedded, which affects the cost.
- The API response times for performance monitoring.
- The rate limit errors with full details for debugging.
Embedding Generation Not Enabled
If you see the error "Embedding generation is not enabled", you need to enable the feature in the configuration file. In the following example, the YAML configuration enables embedding generation and specifies the provider and model.
embedding:
enabled: true
provider: "ollama" # or "anthropic"
model: "nomic-embed-text"
Ollama Connection Issues
If you see the error "Failed to connect to Ollama", you should verify that Ollama is running and the model is available. In the following example, the commands check if Ollama is running, start the service if needed, and pull the embedding model.
# Verify Ollama is running
curl http://localhost:11434/api/tags
# Start Ollama if not running
ollama serve
# Pull embedding model if needed
ollama pull nomic-embed-text
Anthropic Rate Limit Errors
If you see the error "API error 429: rate_limit_error", you are exceeding the API rate limits. You can resolve this issue in several ways:
Check your API usage. You should visit https://console.anthropic.com/settings/usage to review your rate limits and current usage levels.
Switch to Ollama for development. Ollama provides free local embeddings with no rate limits. In the following example, the YAML configuration switches the embedding provider to Ollama.
embedding:
enabled: true
provider: "ollama" # Free, local, no rate limits
model: "nomic-embed-text"
ollama_url: "http://localhost:11434"
Use embedding logging to identify high usage. You can enable logging to understand which operations are generating embeddings. In the following example, the commands enable info-level logging and run the server.
export PGEDGE_LLM_LOG_LEVEL="info"
./bin/pgedge-postgres-mcp
You should review the logs to see the following information:
- The operations that are generating embeddings.
- The amount of text being embedded.
- The frequency of embedding generation requests.
Invalid API Key
If you see the error "API request failed with status 401", the API key is invalid or missing. You should verify that the API key is correct and properly configured.
You can set the API key using an environment variable as shown in the following example:
export PGEDGE_ANTHROPIC_API_KEY="sk-ant-your-key-here"
You can also set the API key in the configuration file as shown in the following example:
embedding:
anthropic_api_key: "sk-ant-your-key-here"
Model Not Found
If you see the Ollama error "Model not found", you need to pull the required model. In the following example, the commands list available models and pull the required embedding model.
# List available models
ollama list
# Pull the required model
ollama pull nomic-embed-text
If you see the Anthropic error "Unknown model", you should check the model name in your configuration. The following models are supported:
- The
voyage-3-litemodel provides 512 dimensions. - The
voyage-3model provides 1024 dimensions. - The
voyage-2model provides 1024 dimensions. - The
voyage-2-litemodel provides 1024 dimensions.
Dimension Mismatch in Semantic Search
If you see the error "Query vector dimensions (768) don't match column dimensions (1536)", you are using different embedding models for document storage and query generation. You should use the same embedding model and dimensions for both operations.
You should check your document embeddings dimensions first. In the following example, the YAML configuration specifies the Ollama provider with the nomic-embed-text model that produces 768 dimensions.
# Match the model used for your documents
embedding:
enabled: true
provider: "ollama"
model: "nomic-embed-text" # 768 dimensions
Troubleshooting Prompt Issues
Prompt 'prompt-name' not found
Error: "Prompt 'prompt-name' not found"
Solutions:
- Verify the prompt name using
/prompts(CLI) or the prompt dropdown (Web UI). - Check for typos in the prompt name.
- Ensure the server is running the latest version.
Missing required argument
Error: "Missing required argument: argument_name"
Solutions:
- Check the prompt's required arguments using
/prompts. - Provide all required arguments in the command.
- Use quotes around values with spaces.
Invalid argument format
Error: "Invalid argument format: ... (expected key=value)"
Solutions:
- Use
key=valueformat for all arguments. - Quote values containing spaces:
key="value with spaces". - Don't use spaces around the
=sign.
Rate limit reached for
Error: "Rate limit reached for ..."
Solutions:
- Wait 60 seconds before retrying.
- Use more targeted queries with WHERE clauses.
- Reduce
max_output_tokensin similarity_search. - Use
limitparameter in queries. - Conversation history is automatically compacted to help prevent this.