API call troubleshooting