Common Issues
Common Issues
Section titled “Common Issues”Solutions to problems you might encounter.
Server Won’t Start
Section titled “Server Won’t Start”Port Already in Use
Section titled “Port Already in Use”Symptom: Error message “Port 3001 is already in use”
Solution:
- Choose a different port in project settings
- Or stop whatever is using that port:
- On Windows:
netstat -ano | findstr :3001thentaskkill /PID <pid> /F - On macOS/Linux:
lsof -i :3001thenkill <pid>
- On Windows:
Server Starts but Requests Fail
Section titled “Server Starts but Requests Fail”Symptom: Server shows as running but requests return connection refused
Solution:
- Check you’re using the correct port
- Try
http://127.0.0.1:PORTinstead ofhttp://localhost:PORT - Check your firewall isn’t blocking the port
Endpoints Not Working
Section titled “Endpoints Not Working”404 Not Found
Section titled “404 Not Found”Symptom: Endpoint exists but returns 404
Causes & Solutions:
- Endpoint is disabled - Check the enabled toggle
- Path mismatch - Verify the path matches exactly (case-sensitive)
- Method mismatch - Verify you’re using the correct HTTP method
- Server not restarted - Some changes require server restart
Wrong Response Returned
Section titled “Wrong Response Returned”Symptom: Getting unexpected response data
Check:
- Response variations - You may have multiple variations configured
- Conditional logic - Check if conditions are matching differently than expected
- Caching - Try a fresh request with
curlor disable browser cache
Template Variables
Section titled “Template Variables”Variables Not Replaced
Section titled “Variables Not Replaced”Symptom: Response shows {{name}} literally instead of generated value
Causes:
- Typo in helper name - Check spelling exactly
- Missing closing braces - Must be
{{name}}not{{name}or{name} - Wrong response type - Body must be text, not binary
Request Data Not Available
Section titled “Request Data Not Available”Symptom: {{params.id}} returns empty
Check:
- Path parameter name matches -
/users/{id}->{{params.id}} - For query params, use
{{query.paramName}} - For body fields, use
{{body.fieldName}}
Proxy Issues
Section titled “Proxy Issues”Proxy Returns Errors
Section titled “Proxy Returns Errors”Symptom: Proxy endpoint returns 500 or 502 errors
Check:
- Target URL is correct and accessible
- Target API is running
- Network connectivity (try
curlto target directly) - SSL certificate issues - some APIs require valid certificates
Recordings Not Appearing
Section titled “Recordings Not Appearing”Symptom: Requests go through but nothing in Recordings tab
Check:
- Recording toggle is enabled on the endpoint
- You’re making requests to the proxy endpoint, not the target directly
Data & Storage
Section titled “Data & Storage”Lost Endpoints After Update
Section titled “Lost Endpoints After Update”Symptom: Endpoints disappeared after app update
Solution: Endpoints are stored in your project folder. Check:
- Windows:
%APPDATA%\api-dev-studio\projects\ - macOS:
~/Library/Application Support/api-dev-studio/projects/ - Linux:
~/.config/api-dev-studio/projects/
Database Corruption
Section titled “Database Corruption”Symptom: App won’t start or shows database errors
Solution:
- Close the app completely
- Delete
project.dbandlocal.dbfrom the app data directory - Restart the app (databases will be recreated)
- Re-import your projects from backups
Note: This loses request history. Export important data regularly.
Performance
Section titled “Performance”App Running Slowly
Section titled “App Running Slowly”Try:
- Clear old requests from Request Inspector
- Delete old recordings you don’t need
- Reduce number of response variations
- Restart the app
Getting More Help
Section titled “Getting More Help”If your issue isn’t listed here:
- Check the full documentation at apidevstudio.com/docs
- Search existing issues on GitHub
- Open a new issue with:
- Your OS and app version
- Steps to reproduce
- Expected vs actual behavior
- Any error messages