Skip to main content
Level 6
April 19, 2024
Solved

Getting java.net.UnknownHostException while getting json of page using .infinity.json

using .infinity.json we get json of AEM page but we are getting below error while hitting the below request.

https://{host_name}.net:443/content/obi/wbc/en/tools-and-resources/references/public-holidays.infinity.json

 

 Error message:Caused by: java.net.UnknownHostException: login-test.authbridge-nonprod.{host_name}.com

 

Please let us know, the configuration steps to enable the .infinity.json in AEM.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
VeenaVikraman
VeenaVikramanAccepted solution
Community Advisor
April 19, 2024

@akshaybhujbale If that is the case , please check your default_filters.any file. There is a rule which will block this requests over dispatcher . Ideally it should not be allowed in Publish. But please allow it only after checking with your architect and evaluating the potential complexities of enabling it.

 

Thanks

Veena ✌

4 replies

VeenaVikraman
Community Advisor
Community Advisor
April 19, 2024

@akshaybhujbale Are you sure the IP or hostname is valid . As per the documentation https://docs.oracle.com/javase%2F7%2Fdocs%2Fapi%2F%2F/java/net/UnknownHostException.html this error is Thrown to indicate that the IP address of a host could not be determined.

 

 

Translate
Level 6
April 19, 2024

Hi @veenavikraman , But at the same time we are getting response for below request for Assets /content/dam/OBI/common/sample/risk/rdl/policies/liquidityriskpolicies/documents/WBG-health-management.pdf.infinity.json 

Translate
VeenaVikraman
Community Advisor
VeenaVikramanCommunity AdvisorAccepted solution
Community Advisor
April 19, 2024

@akshaybhujbale If that is the case , please check your default_filters.any file. There is a rule which will block this requests over dispatcher . Ideally it should not be allowed in Publish. But please allow it only after checking with your architect and evaluating the potential complexities of enabling it.

 

Thanks

Veena ✌

Translate
Shashi_Mulugu
Community Advisor and User Group Leader
Community Advisor and User Group Leader
April 22, 2024

@akshaybhujbale are you sure calls for json for both content path and dam path happening from same server/app?? Unknown host exception occurs when hostname cannot be resolved from your calling server/app. Please check by executing a curl/telnet/wget from your calling server. Please take opinion of network/system administrators

Translate