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

Post Track not working anymore with 403 #335

Closed ymeskini closed 1 day ago

ymeskini commented 1 week ago

ERROR: The request could not be satisfied

Issue found of: October 14th, 2024

Endpoint(s):

Scope(s):

Steps to reproduce:

curl -X POST "https://api.soundcloud.com/tracks" \
-H  "accept: application/json; charset=utf-8" \
-H "Authorization: OAuth {token}" \
-H  "Content-Type: multipart/form-data" \
-F "track[title]=YOUR_TITLE" \
-F "track[asset_data]=@./audio.mp3"

getting:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: FpHTrIj3bgDfi45jnr02yxg8IXhED48AdQbIa7Ib_Hfdasnm_gjhTQ==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>%

Expected behaviour:

Should allow the upload of that file as the documentation describes https://developers.soundcloud.com/docs/api/explorer/open-api#/tracks/post_tracks https://developers.soundcloud.com/docs/api/guide#uploading

Actual behaviour:

403 ERROR: The request could not be satisfied

youssefhassan commented 1 week ago

Hey @ymeskini, there was an issue that I just fixed, can you confirm it's working again?

ymeskini commented 1 week ago

Hey @youssefhassan thanks for your help yes I can confirm it's now fixed

ymeskini commented 1 week ago

Hey @youssefhassan this is happening again could you have a look please

ginogagliardi commented 1 week ago

Hi @youssefhassan , I'm experiencing the same problem.

keybrdist commented 6 days ago

Same issue here.

youssefhassan commented 6 days ago

Hello @ymeskini , @ginogagliardi and @keybrdist thanks for your reporting and patience. Can you please try now? it should be fixed, we are deploying a permanent fix for the issue shortly

keybrdist commented 5 days ago

@youssefhassan confirmed working right now. Thanks.

youssefhassan commented 1 day ago

Issue should be resolved now, feel free to open again if it happened again. Thanks for reporting and your patience