Experiencing Inconsistent API Response Times for My Country Codes Directory Webtool โ€“ Any Debugging Tips?

Author
Hamza Hassan Author
|
4 hours ago Asked
|
1 Views
|
0 Replies
0

Hey everyone, I'm facing a frustrating issue with my 'Country Codes Directory' webtool regarding inconsistent API response times.

Sometimes it's lightning fast, but other times it's excruciatingly slow or even timing out completely. I'm struggling to pinpoint if it's an API performance bottleneck on my server side or an external API issue.

Here's a snippet from my console output when it's acting up:

[2023-10-27 10:31:05] API_CALL: GET /api/country/US
[2023-10-27 10:31:05] Response Time: 55ms
[2023-10-27 10:31:10] API_CALL: GET /api/country/DE
[2023-10-27 10:31:10] Response Time: 4890ms
[2023-10-27 10:31:15] API_CALL: GET /api/country/JP
[2023-10-27 10:31:25] Error: Request timed out after 10000ms

Any immediate debugging tips or strategies for diagnosing such API performance inconsistencies would be greatly appreciated. Thanks in advance!

0 Answers

No answers yet.

Be the first to provide a helpful answer!

Your Answer

You must Log In to post an answer and earn reputation.