audius-protocol icon indicating copy to clipboard operation
audius-protocol copied to clipboard

Discovery node return tracks as downloadable while streaming url returns 403

Open kr4xkan opened this issue 3 years ago • 3 comments

In this issue I will use https://discoveryprovider.audius.co as the endpoint.

Expected Behavior:

https://discoveryprovider.audius.co/v1/tracks/VQb0N should be returning downloadable: false because it is deleted.

Current Behavior:

https://discoveryprovider.audius.co/v1/tracks/VQb0N returns downloadable: true while https://discoveryprovider.audius.co/v1/tracks/VQb0N/stream redirects to https://creatornode2.audius.co/tracks/stream/VQb0N which returns a 403 code because the CID is blacklisted (likely because it is marked as deleted)

I am pretty sure this is unwanted behavior, because I have in the past encountered deleted tracks and they were marked as downloadable: false

kr4xkan avatar May 03 '21 09:05 kr4xkan

Actually it seems that there is the same problem but the other way.

https://discoveryprovider.audius.co/v1/tracks/b9ZBk is returning downloadable: false but https://discoveryprovider.audius.co/v1/tracks/b9ZBk/stream is actually working and returning the track

Maybe I don't understand the downloadable field but for me it means: Whether a track is streamable or not.

kr4xkan avatar May 03 '21 09:05 kr4xkan

Has this issue been fixed?

mirek11s avatar Mar 03 '22 11:03 mirek11s

I've checked both of my example links and it seems like not, My response to this was to check directly the stream URL if you're getting a 200 status code it's good

kr4xkan avatar Mar 03 '22 19:03 kr4xkan