requestResponseFactory returning empty for _cq_dialog.infinity.json | Community
Skip to main content
bsr060893
Level 3
August 26, 2020
Solved

requestResponseFactory returning empty for _cq_dialog.infinity.json

  • August 26, 2020
  • 2 replies
  • 2606 views

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.
Best answer by arunpatidar

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.

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 26, 2020

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
bsr060893
bsr060893Author
Level 3
August 26, 2020
@arunpatidar could you post any example of using the sling request or httpreqest?
BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 26, 2020

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 ?

bsr060893
bsr060893Author
Level 3
August 26, 2020
Yes in browser I am able to retrieve the json,