checking google api gives me error 503 "An unexpected error occurred. Please try again." when I try to verify the domain using the TAG_MANAGER method.
This happens when I try to use the API through the PHP client library, and also when I use the Google API . However, if I enter Google’s Webmaster Tools and add a site using Tag Manager as a verification method, I can successfully verify myself.
I have added debugging information from the API Explorer below, but it is very light on the details. My support request in the webmaster forum was greeted with deafening silence, but I'm not sure where else to ask.
Request
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=TAG_MANAGER&key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer ya29.iAC-QBa-7nzvS2lpFFmfcej2Y0suhiWHgS8SivKN9jpYWffljsRV7rbL
X-JavaScript-User-Agent: Google APIs Explorer
{
"site": {
"identifier": "http://unit1-28leanyerdriveleanyer.com",
"type": "SITE"
},
"owners": [
"loboyle@raywhite.com"
]
}
Response
503 Service Unavailable
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "An unexpected error occurred. Please try your request again."
}
],
"code": 503,
"message": "An unexpected error occurred. Please try your request again."
}
}