Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 7

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

 

 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.

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

VeenaVikraman_0-1713511440041.png

 

Thanks

Veena ✌

View solution in original post

4 Replies

Avatar

Community Advisor

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

 

 

Avatar

Level 7

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 

Avatar

Correct answer by
Community Advisor

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

VeenaVikraman_0-1713511440041.png

 

Thanks

Veena ✌

Avatar

Community Advisor

@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