Skip to content

Hazards caching needs update #1

Description

@elusiveuphoria

@Panguino The issue with hazard maps not loading is a result of src/util/jobs/cacheRegionData.js not requesting the alerts.json from the correct location anymore. There is the following block for fetching the json...

  // Fetch weather alerts
  let hazardData = null;
  try {
    const response = await axios.get(
      "https://climate.cod.edu/data/text/alerts.json"
    );
    hazardData = response.data;
  } catch (error) {
    return cachingResult(false, error);
  }

"https://climate.cod.edu/data/text/alerts.json" needs to become "https://weather.cod.edu/wxdata/text/alerts.json"

Glancing around, this seems to be the only time climate.cod.edu is referenced, but if there any other occurrences that contain "climate.cod.edu/data" they need to be changed to "weather.cod.edu/wxdata"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions