<div dir="ltr">I am encountering the folllowing issue when i am trying to use HTTPMetadataResolver to read my federation metadata from http url.<br><br>My logs are showing -<br><b>ERROR [org.opensaml.saml.metadata.resolver.impl.HTTPMetadataResolver:239] - Non-ok status code 500 returned from remote metadata source</b><br><br>But if i copy the contents of the xml from the url and copy paste it into a file and then use FileBackedHTTPMetadataResolver or FileSystemMetadataResolver, the redirect from SP to IdP is successful which should mean that the metadata file content is correct.<br><br>the settings i have used in metadata-providers.xml are as follows: <br><br><MetadataProvider <br>id="HTTPMetadata"<br>xsi:type="FileBackedHTTPMetadataProvider" <br>failFastInitialization="true" <br>disregardTLSCertificate="true" <br>xmlns="urn:mace:shibboleth:2.0:metadata" <br>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" <br>xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata  <br><a href="http://shibboleth.net/schema/idp/shibboleth-metadata.xsd">http://shibboleth.net/schema/idp/shibboleth-metadata.xsd</a>" <br>backingFile="%{idp.home}/metadata/example.xml" metadataURL="<a href="http://xyz.example.com/metadata">http://xyz.example.com/metadata</a>" ><br></MetadataProvider><br><br>in this case the url gives status code 500 error and then the data from file is read but i want the data to be read from the url passed.<br><br> What configuration errors am i making or what else needs to be added to make it work?<br><br>-- <br>Priyanshu Bhalotia<br>Platform Engineer<br>Wooqer</div>