Expand my Community achievements bar.

Unable to access audio file via publish url

Avatar

Level 4

I have a content fragment which has references to audio files from dam. I'm exposing a graphQL endpoint which pulls contents from this content fragment and exposes publish url of contents. In the response, I'm getting the url of the audio like :

 

https://publish-pXXXX-XXX.adobeaemcloud.com/content/dam/my-project/folder/audio/file.mp3

 

In graphql query, I'm referring to audio like:

rakesh_h2_0-1687421371928.png

format I'm getting in response is : 'audio/mpeg'

When I hit this url in browser, I get a 'Not found' error. For images, when I hit the publish url in browser, it gets downloaded. Doesn't work the same way for audio.

Please help.

rakesh_h2_0-1687420936510.png

 

4 Replies

Avatar

Community Advisor

Can you check if the file exists here:

/content/dam/my-project/folder/audio/file.mp3

 

Also, see if the below URL is blocked in AEM as Cloud Publish: 

https://publish-pXXXX-XXX.adobeaemcloud.com/content/dam/my-project/folder/audio/file.mp3

 

Avatar

Level 4

File exists in the above location in author instance and it has been published too. But unable to access via publish url.

Avatar

Community Advisor

Additionally, check if you don't have ACL issues, perhaps the folder is not allowed by an anonymous user, did you try once logged in to the publish instance?



Esteban Bustamante