I can access an api from a browser with no problems, however when I try the request from an anvil app I get an SSL error.
I thought it might be my local certificates, but even when I run the example anvil app on my phone, using 4G, I get the same error
The api call is
https://aa.usno.navy.mil/api/siderealtime?date=03/04/2020&coords=41.89,12.48&reps=90&intv_mag=5&intv_unit=minutes&time=21:00:00
the error is
AnvilWrappedError: SSL error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
the example anvil app to test this api call is test Link
and the anvil works code for the app is here
https://anvil.works/build#clone:WHOIBQQRFF3GBLMG=U2XFUDZTM375D77HLJBTOKRQ