Catalog API returns "Unusable Address"

I’m using Catalog Api in my client’s application. This worked well for a few years.
From yesterday, we encountered error in calling catalog API. The error was
“Unusable Address: https://connect.squareup.com/v2/catalog/list?types=CATEGORY
or
“Unusable Address: https://connect.squareup.com/v2/catalog/search

When I retry the call, this works. There may be some of the API servers has server issues.
Please check your servers stability.
Thanks

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

https://developer.squareup.com/docs/app-marketplace/requirements/catalog-api

Additional Documentation

Search for Items and Objects
Build a Simple Catalog
Call the SearchCatalogItems Endpoint

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

I understand how I can use Catalog API. My concern is the server may down, Please ask engineering team the server status.

No, the info does not help me at all.
Since this should be server issue, let the engineering look at the issue.

The error message “Unusable Address” typically indicates a network issue on the client side rather than an issue with Square’s servers. It could be due to a temporary network glitch, DNS resolution issues, or a problem with your internet service provider.

If the issue persists, you might want to check your network settings, try a different network, or consult with your network administrator. Also, ensure that your application handles such network glitches gracefully, perhaps by implementing a retry mechanism for failed requests.

This answer was reviewed by @Bryan-Square.

I tried the effort on the different PC and different networks. But the issue still occur.
Since the API access is done in google cloud side. So, it should not be network issue on my side.

Please check your servers for the safe.

What’s your application ID and a timestamp of when this last happened? :slight_smile:

Hi, Thank you for your reply.
I’m using Apps Script with Spreadsheet per clients request.
I created apps script to reproduce the issue.
Open Apps Script Editor and Run getItems function.
Since we have 18000 items, the api call was happen 180 times.
There were 0-3 times errors. The error was as the attached.
“Address unavailable: https://connect.squareup.com/v2/catalog/list?types=ITEM&cursor=CAASHAoUMTEyOTc1NDAyMDo3ODgzODIyMDQSBBABOGQ

The error may be DNS error at server side, and this will not your side issue.
Since I can find the workaround by retrying the fetch API, you can close at the moment.

Thank you for your help.