【发布时间】:2014-10-01 19:45:21
【问题描述】:
我正在使用 PHP 的 Soundcloud API 包装器来上传一些曲目。 该应用程序运行良好多年,直到几天。
现在我收到一个 HTTP 100 代码,然后是一个 HTTP 502 错误。
这是请求:
Array
(
[CURLOPT_HEADER] => 1
[CURLOPT_RETURNTRANSFER] => 1
[CURLOPT_USERAGENT] => PHP-SoundCloud/2.3.2
[CURLOPT_POST] => 1
[CURLOPT_POSTFIELDS] => Array
(
[track[title]] => Boris - Like Water (Original Mix) [Alleanza]
[track[description]] => <p>It is said that there is something in the New York air that makes sleep useless and these night-loving cuts from Boris sustain the fact of his own city. Bottom heavy might be the ideal definition for these showpieces but when we secure work of this calibre to the label throwing light upon words would be a violation of what is regarded as sacred to new age techno for the reason that interpretation to such elegance should be prevailed at the given time of function.</p>
[track[asset_data]] => @/home/cubelab/platform/labels/alleanza/ALLE043/BORIS_-_Like_Water_-_ALLEANZA.mp3
[track[sharing]] => private
[track[tag_list]] => "Boris" "Like Water" "Original Mix" "Techno" "Alleanza"
[track[genre]] => Techno
[track[track_type]] => original
[track[downloadable]] =>
[track[release]] => ALLE043
[track[release_day]] => 04
[track[release_month]] => 08
[track[release_year]] => 2014
[track[purchase_url]] => http://www.beatport.com/release/like-water-the-master/1340844
[track[artwork_data]] => @/home/cubelab/platform/labels/alleanza/ALLE043/ALLE043.jpg
[track[label_name]] => Alleanza
)
[CURLOPT_HTTPHEADER] => Array
(
[0] => Accept: application/json
[1] => Authorization: OAuth *-*****-*******-****************
)
)
这是来自服务器的响应:
HTTP/1.1 100 Continue
HTTP/1.1 502 Bad Gateway
Content-Type: text/html
Date: Fri, 08 Aug 2014 09:51:03 GMT
Server: ECS (ams/4989)
Content-Length: 349
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>502 - Bad Gateway</title>
</head>
<body>
<h1>502 - Bad Gateway</h1>
</body>
</html>
这似乎是 Soundcloud 服务器错误,我不知道如何进行进一步调试。
【问题讨论】:
-
我们也收到了来自 SoundCloud API 的大量 502 错误。自 8 月 6 日以来,根本无法上传任何内容。超过 450 次尝试发送到 API 失败。我已经联系了 SoundCloud,但到目前为止他们并没有提供很大的帮助!
标签: api soundcloud http-status-codes