requestResponseFactory returning empty for _cq_dialog.infinity.json | Community
Skip to main content
bsr060893
Level 3
Aug 26, 2020 6:52 PM UTC
Solved

requestResponseFactory returning empty for _cq_dialog.infinity.json

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 26, 2020 7:37 PM UTC

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

6 replies

BrianKasingli
New Participant
Aug 26, 2020 8:32 PM UTC

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 ?

Translate
bsr060893
bsr060893Author
Level 3
Aug 26, 2020 8:34 PM UTC
Yes in browser I am able to retrieve the json,
Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 26, 2020 7:37 PM UTC

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.

Translate
Arun Patidar
bsr060893
bsr060893Author
Level 3
Aug 26, 2020 7:45 PM UTC
@arunpatidar could you post any example of using the sling request or httpreqest?
Translate