Expand my Community achievements bar.

SOLVED

AEM api assets only work in author instance

Avatar

Level 3

Author instance:

https://author.xxxxx.com/api/assets/documents/pdf.json - works and print out json data.

 

Publisher instance:

https://www.xxxxx.com/api/assets/documents/pdf.json - The requested URL .../pdf.json was not found on this server.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Kam-nyc 

 

Few things to check here:-

 

1. Have you checked on the publisher whether this asset exists?

2. If asset exist, ideally it should be accessible. It might be the dispatcher is blocking it. You would need to add the dispatcher filter rule to allow /api/assets/*.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Kam-nyc 

 

Few things to check here:-

 

1. Have you checked on the publisher whether this asset exists?

2. If asset exist, ideally it should be accessible. It might be the dispatcher is blocking it. You would need to add the dispatcher filter rule to allow /api/assets/*.