soundcloud / api

A public repo for our Developer Community to engage about bugs and feature requests on our Public API
148 stars 24 forks source link

Unable to upload audio via API #301

Closed BarnsRC closed 1 month ago

BarnsRC commented 3 months ago

Unable to upload audio via API

Issue found of: July 2nd, 2024

Endpoint(s):

Scope(s):

Steps to reproduce:

curl -X 'POST'
'https://api.soundcloud.com/tracks'
-H 'Authorization: OAuth *'
-F 'track[title]=test'
-F 'track[downloadable]=true'
-F 'track[commentable]=true'
-F 'track[sharing]=public'
-F 'track[streamable]=true'
-F 'track[asset_data]=@test-asset-data'

Other form variables may be included if our users include it when uploading the track via our UI.

Expected behaviour:

Should upload audio file to the respective Soundcloud account.

Actual behaviour:

Receive this response:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
   <head>
     <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
     <title>We were unable to process your request in time - SoundCloud</title>
     <style type="text/css">
       body {
         background-color: #fff;
         background-image : url(https://soundcloud-support.s3.amazonaws.com/images/downtime-bg.png);
         background-repeat: repeat-x;
       }
       #maintenance {
         width: 325px;
         height : 180px;
         background-color : transparent;
         background-image : url(https://soundcloud-support.s3.amazonaws.com/images/reload-huge.png);
         background-position: top left;
         background-repeat: no-repeat;
         margin : 150px auto 0 auto;
         color: #666;
         font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
         font-size: 13px;
         position: relative;
         padding: 125px 0 0 200px;
       }
       #maintenance h1 {
         font-weight: normal;
         font-size: 28px;
         color: #06c;
       }
       #maintenance a {
         color: #f30;
         text-decoration: none;
       }
     </style>
   </head>
   <body>
     <div id="maintenance">
       <h1>
       Yikes, we were unable
       <br />
       to process your request
       <br />
       in time.
       </h1>
       <span>
         Please reload the page or try again in a moment.
         <br />
         Please check <a href="http://status.soundcloud.com/"><strong>our Status page</strong></a> for more details as they come in.
       </span>
     </div>
     <script>
       window._gaq = window._gaq || [];
       _gaq.push(['_setAccount', 'UA-2519404-44']);
       _gaq.push(['_trackPageview']);
       _gaq.push(['_trackEvent', '503', 'ampelmann', window.location.toString()]);

       (function() {
         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
         ga.src = ('https:' == document.location.protocol ? 'https://ssl/' : 'http://www/') + '.google-analytics.com/ga.js';
         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       })();
     </script>
   </body>
 </html>
bbeesley commented 3 months ago

Should be fixed now