Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Content fragment variations not accessible in non-AEM platform

Avatar

Avatar
Validate 1
Level 1
bhuwaneshdhakar
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
bhuwaneshdhakar
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
bhuwaneshdhakar
Level 1

18-10-2018

I created few content fragments and some variations of those. I placed these fragment variations in a API page (exposed as JSON via Sling model) which is being called in non-AEM platform (React-based).

If I access API page having at least one content fragment variation (non-master) in react-app then it gives 500 server error.

If I use only master variations of content fragment then the page is accessible in react-app.

If I access API page directly in browser, then JSON is returned as expected.

The CORS related configuration is properly done in AEM so that it allows react-app to access the API page.

Please let me know what else configuration needs to be done so that I  can access API page having content fragment variation within react-app (non-AEM).

Thanks.

Bhuwanesh

Replies

Avatar

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

132 likes

Total Posts

540 posts

Correct Reply

164 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

132 likes

Total Posts

540 posts

Correct Reply

164 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile
PuzanovsP
MVP

21-10-2018

Dear Bhuwanesh,

Thank you for your question,

It's hard to tell what could go wrong in your API page without action exception that's causing 500

Can you please attach 500 response you are getting from error.log?

Regards,

Peter