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

SOLVED

requestResponseFactory returning empty for _cq_dialog.infinity.json

bsr060893
Level 3
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
Arun_Patidar
Correct answer by
Community Advisor
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.

View solution in original post

6 Replies
Arun_Patidar
Correct answer by
Community Advisor
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.

View solution in original post

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

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

Will try with the above .

Thank you

BrianKasingli
Community Advisor
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 ?