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 when the local server tries to create a bootstrap SQLite database in a directory that is not writable (e.g., 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
| Allowed | Not Allowed |
|---|---|
| AND, OR, NOT | CHECK, VALIDATE |
| GT, LT, EQ | GREATER, LESS |
| IMPLIES, IFF | IF, THEN |
| FORALL, EXISTS | ALL, ANY |
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
| Code | Meaning | Solution |
|---|---|---|
E001 | Invalid expression | Check syntax |
E002 | Type mismatch | Check variable types |
E003 | Division by zero | Add guards |
E004 | Timeout | Simplify query |
E005 | Rate limit | Implement backoff |
E401 | Auth failed | Check API key |
E500 | Server error | Contact support |
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