Authentication errors
API key invalid
- Check your API key is correct:
echo $QWED_API_KEY - Make sure the value is not a placeholder —
qwed initignores common dummy values likeyour-api-key,changeme,placeholder, andxxx. Replace them with a real key. - Regenerate key at cloud.qwedai.com
- Ensure no extra spaces or newlines
Rate limit exceeded
- Free tier: 100 requests/minute
- Pro tier: 1,000 requests/minute
- Enterprise: Unlimited
Verification failures
Math: floating-point precision
Logic: unsatisfiable constraints
Stats: Internal verification error
- Verify your query is a valid statistical question (e.g., “What is the mean of column X?”)
- Check that the column names in your query match the columns in your data
- If the issue persists, check the server-side logs for the exception type
Code: timeout
- Increase timeout:
client.verify_code(code, timeout=60) - Simplify code (reduce loops, recursion)
- Use bounded verification
CLI issues
qwed init fails with “attempt to write a readonly database”
qwed init. The local server tries to create a bootstrap SQLite database in a directory that is not writable. Common examples include a read-only mount, a container filesystem, or a system-managed path.
Solution: Upgrade to QWED v4.0.0 or later:
qwed init automatically resolves a writable runtime directory for the database. It uses the current working directory if writable, otherwise falls back to ~/qwed-demo/. No manual intervention is needed.
If you cannot upgrade, run qwed init from a writable directory:
Gemini provider issues
Missing google-generativeai package
Gemini API key not found
GOOGLE_API_KEY or GEMINI_API_KEY:
Gemini timeout errors
All Gemini API calls have a 30-second timeout. If your requests time out consistently:- Check your network connection to Google’s API servers
- Break large inputs into smaller parts
- For image verification, ensure images are under 10 MB
Gemini JSON parse errors
SDK issues
Import error
Async not working
DSL syntax errors
Unknown operator
Missing parentheses
Performance issues
Slow verification
Possible causes:- Complex expressions with many variables
- Large code files
- Deep recursion in symbolic execution
High memory usage
Solution: Stream large results:Common error codes
Getting help
- Documentation: docs.qwedai.com
- GitHub Issues: github.com/QWED-AI/qwed-verification/issues
- Email: support@qwedai.com
- Intercom: Chat widget on docs site