Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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/*.