Pack to access Google APIs necessitates multiple network domains?

I’m building a pack to access Google APIs.

Google uses different domains for OAuth and for data. Here are the urls I have:

For OAuth:
authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth,
tokenUrl: https://oauth2.googleapis.com/token

For data:

  • https://mybusinessaccountmanagement.googleapis.com/v1/accounts
  • https://mybusinessbusinessinformation.googleapis.com/v1/accounts/{accountId}/locations
  • https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/reviews

As you can see, all three of the APIs are related and share the same authentication. The shared domain between them is googleapis.com (authorization URL is different), but when I use:

pack.addNetworkDomain("googleapis.com")

I get build errors:

metadata.networkDomains[0]: The given domain googleapis.com does not seem to be valid.

Am I missing something, or is this one of the cases where I need to reach out to Coda to request multiple network domains?

Hi @Dan_Guberman - Thanks for the heads up. We made a change to our network domain handling recently and it had the side effect of making googleapis.com not seen as a valid domain. We have a fix in place that should roll out in the next day or two. Sorry for the inconvenience!

1 Like

Yep - stopped my dev efforts in its tracks. I figured it was a DNS issue. Thanks for addressing this soon.