Firefox: Geolocation error POSITION_UNAVAILABLE

revision f86269469fa1990e82bf5a8c847bca265d339b7f

raw

README.rst

Websites using the HTML5 geo api on Firefox 76 from Ubuntu 18.04 get errors:

GeolocationPositionError
​code: 2 (POSITION_UNAVAILABLE)
message: "Unknown error acquiring position"

The browser tools help (Burger menu -> web developers -> browser tools -> network tab) and show:

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota group 'default' and limit 'Requests per day' of service 'geolocation.googleapis.com' for consumer 'project_number:424119844901'.",
    "errors": [
      {
        "message": "Quota exceeded for quota group 'default' and limit 'Requests per day' of service 'geolocation.googleapis.com' for consumer 'project_number:424119844901'.",
        "domain": "global",
        "reason": "rateLimitExceeded"
      }
    ],
    "status": "RESOURCE_EXHAUSTED"
  }
}

The configuration is in about:config, geo.provider.network.url. Default:

https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%

New one that works:

https://location.services.mozilla.com/v1/geolocate?key=test

See also: - https://stackoverflow.com/a/51534563/282601

History