Describe a scenario where you had to debug a failed API request. How did you identify the issue, and what steps did you take to resolve it?