Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

AEM LinksLinkedIn

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

AEM LinksLinkedIn

Avatar

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

Avatar

Community Advisor

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 and Adobe Champion

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 ?

Avatar

Level 3
Yes in browser I am able to retrieve the json,