Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

requestResponseFactory returning empty for _cq_dialog.infinity.json

Avatar

Level 3

Hi,

 

I am trying to get the cq:dialog infinity.json data.

being used with requestResponseFactory to make a request, everytime no response is returned.

Please help with the returning of the data with the requestResponseFactory 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Why are you not using httpRequest or sling request instead of requestResponseFactory. requestResponseFactory is used for below-

The RequestResponseFactory helps in creating custom HttpServletRequest and HttpServletResponse objects for use in Content Sync update handlers.



Arun Patidar

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Why are you not using httpRequest or sling request instead of requestResponseFactory. requestResponseFactory is used for below-

The RequestResponseFactory helps in creating custom HttpServletRequest and HttpServletResponse objects for use in Content Sync update handlers.



Arun Patidar

Avatar

Level 3
@arunpatidar could you post any example of using the sling request or httpreqest?

Avatar

Level 3

I am trying to access mnt/override/<path-to-component>/_cq_dialog.infinity.json

Will try with the above .

Thank you

Avatar

Community Advisor

Does the resource exist? Can you get a 200 OK from GET request from http://localhost:4502/apps/my-site/desktop/dialogs/icon-selection.infinity.json ?