我试图在Codecademy上完成JavaScript跟踪,这需要api密钥才能访问Google的网址缩短服务。当我尝试缩短时,无论是否使用API的资源管理器页面,我都会遇到错误。
POST https://www.googleapis.com/urlshortener/v1/url?key={YOUR_API_KEY}
{
"longUrl": "https://freecodecamp.org"
}
500 Internal Server Error
cache-control: private, max-age=0
content-encoding: gzip
content-length: 122
content-type: application/json; charset=UTF-8
date: Tue, 02 Jan 2018 18:13:54 GMT
expires: Tue, 02 Jan 2018 18:13:54 GMT
server: GSE
vary: Origin, X-Origin
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
答案 0 :(得分:0)
是的......我们也得到了...... 我相信谷歌缩短服务目前正在下降......