Hacker News new | ask | show | jobs
by calebegg 1248 days ago
Lol I named my version "Bright Earth" as an opposition to dark sky (brightearth.app)
1 comments

Error after receiving permission to get location:

Firefox:

  brightearth.app:6:4322  
    XML Parsing Error: mismatched tag. Expected: </input>.
    Location: https://brightearth.app/
    Line Number 6, Column 4322: 2

  fetchWeather.ts:31:31
    Uncaught (in promise) TypeError: l.querySelector(...) is null
      g fetchWeather.ts:31
Safari:

  App.tsx:46
    [Error] Unhandled Promise Rejection: TypeError: null is not an object
    (evaluating 'l.querySelector("creation-date").textContent')
      (anonymous function) (index.2994085b.js:139:2367)
      asyncFunctionResume
      (anonymous function)
      promiseReactionJobWithoutPromise
      promiseReactionJob
Sometimes the NOAA APIs don't return data according to the usual structure. I can't consistently reproduce it. If you can please let me know!