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
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.
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 ?