hdkit icon indicating copy to clipboard operation
hdkit copied to clipboard

Unable to Access Ephemeris Resource URLs - 404 Error

Open lg-liwanxing opened this issue 3 months ago • 5 comments

Hello, I recently cloned the project from GitHub and encountered an issue when trying to run it. It seems that some resource URLs are returning a 404 error, preventing the application from functioning correctly. For example, the URL in the following code snippet is not accessible:

fetch(
  `https://hdblacklist-proxy.herokuapp.com/https://hungry-goldwasser-6106a1.netlify.app/ephemeris-annual-forecast-${year}-1s-accuracy.json`
).then((response) => {
  response.json().then((jsonData) => {
    console.log("setting json data", jsonData);
    jsonData.year = year;
    ephemeris = jsonData;
    setStateEphemeris(jsonData);
    storage
      .setContents(
        `ephemeris-annual-forecast-${year}`,
        JSON.stringify(jsonData)
      )
      .then(function () {
        setCurrentActivation(getActivationData());
      });
  });
});

I have tried accessing the URLs directly:

  • https://hungry-goldwasser-6106a1.netlify.app/ephemeris-annual-forecast-${year}-1s-accuracy.json
  • https://hdblacklist-proxy.herokuapp.com/ephemeris-annual-forecast-${year}-1s-accuracy.json

Both return a 404 error, even when I change the year to other values.

This issue is not isolated to the above example; similar problems exist in other parts of the code as well.

Could you please help me resolve this issue or provide guidance on how to access the necessary resources?

Thank you for your assistance!

lg-liwanxing avatar Nov 21 '24 03:11 lg-liwanxing