Hi,
We're implementing AEM React SPA in our project. Page is loading fine in the author but not in the publisher. Page is empty and this is due to en.model.json not at all being fetched and failing with 404 status. cq:pagemodel_root_url attribute is populated with the right model json value in publish. Are we missing something here?
Thanks,
Divya
Solved! Go to Solution.
Views
Replies
Total Likes
Do you have a dispatcher that's probably blocking model.json requests? Can you find if thats the case. And as a last resort compare infinity.json on en node in author and publisher.
Do you see any browser console error? Can you post it if so?
Yes, I do see console errors and it is regarding the json not being loaded.
What happens if you hit directly in the browser that URL? do you have enough rights?
When i directly hit in the browser, it says "Not Found.The requested URL was not found on this server". Do I need to make any changes in ui.frontend module?
May be a bad question, but i will ask anyways. Is the en page published? And can you confirm anonymous access is not denied for this site?Also see if en.html is accessible from publisher just to confirm a blank page will load at the minimmum without returning 404.
Hi,
en page is published and I am seeing blank page . Anonymous access is also provided for the site.
Thanks,
Divya
If you have access to CRX on publisher, can you compare the en nodes between author and publisher? And see if the path to en node is accessible directly in CRX, and double click on the en node, and confirm if the html loads fine.
We do not have access to CRX on publisher. We are using AaaCS.
Do you have a dispatcher that's probably blocking model.json requests? Can you find if thats the case. And as a last resort compare infinity.json on en node in author and publisher.
Thank you for your inputs.This issue is resolved now as it is a dispatcher issue. We have added filter rules to allow json requests.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies