Expand my Community achievements bar.

SOLVED

AEM content fragment is not displayed in publish

Avatar

Level 1

Author instance:

https://author.xxxxx.com/api/assets/contentfragment/demo.model.json - works and print out json data.

 

Publisher instance:

https://www.xxxxx.com/api/assets/contentfragment/demo.model.jsonThe requested URL not printing json data

1 Accepted Solution

Avatar

Correct answer by
Level 4

@Aditi5 If you are trying through dispatcher url, make sure the link is allowed in dispatcher rules.

Eg:

/0001 { /type "allow" /method "GET" /url "*/api/assets/contentfragment/demo.model.json" }

 

Apart from above one, did you try debugging the issue like below

1. Have you checked network logs in browser? Any console errors?

2. Is it working fine with publish IP address? If not make sure the asset is activated and queue is clear.

3. Any errors in AEM logs? when you try to access the fragment?

 

Thank you!!

View solution in original post

2 Replies

Avatar

Employee Advisor

@Aditi5 

Got Sample Content Fragments on my local setup and published a CF on to the publisher. And I see no issues in getting a json response:

http://localhost:4503/api/assets/sample-content-fragments/cities/berlin.model.json

 

Please validate, that Content Fragment has been published to the Publisher.

Also, when you hit above url on Publisher, what response do you get.

 

This should work seamlessly, unless your Content is stuck in Replication/Distribution Queue.

Avatar

Correct answer by
Level 4

@Aditi5 If you are trying through dispatcher url, make sure the link is allowed in dispatcher rules.

Eg:

/0001 { /type "allow" /method "GET" /url "*/api/assets/contentfragment/demo.model.json" }

 

Apart from above one, did you try debugging the issue like below

1. Have you checked network logs in browser? Any console errors?

2. Is it working fine with publish IP address? If not make sure the asset is activated and queue is clear.

3. Any errors in AEM logs? when you try to access the fragment?

 

Thank you!!