Soundcloud API在上传曲目时返回502错误

时间:2014-08-08 10:40:26

标签: api soundcloud http-status-codes

我正在使用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服务器错误,我不知道如何进行任何进一步的调试。

1 个答案:

答案 0 :(得分:0)

有同样的问题。相同的时间表。每天手动检查。和OMG,刚才我的脚本工作100%罚款。它现在也适合你。你确定吗?

所以回答你的问题:只是给它时间,一切都将恢复正常运行 ..嘿..这对你来说是声音云,德国工程学等......这是非常喜怒无常的,有时候工作多年的脚本停止工作。而且总是只有几天......