1
f = $.get('https://api-ssl.bit.ly/v3/shorten/?format=json&access_token=derpderpderp&longUrl=http%3A%2F%2Fgoogle.com%2F')
f.done(function(r){ console.log(r);});
輸出:bitly JSON API返回500,UNKNOWN_ERROR
Object
data: Array[0]
length: 0
__proto__: Array[0]
status_code: 500
status_txt: "UNKNOWN_ERROR"
__proto__: Object
這是什麼UNKNOWN_ERROR
?沒有任何status_txt
我無法知道出了什麼問題。 longUrl
從他們的文檔複製,所以它不應該是一個URI編碼錯誤。