For the record, back in April 2019 Canonical requested a separate MLS
API key to use in geoclue in Ubuntu, and the request was initially
acknowledged, but then it was put on hold on Mozilla's end and we never
heard back from them, despite a couple of follow-up e-mails.

>From the discussion in the upstream geoclue bug, it looks like the
process to request separate keys is now working better, so we should
have better luck if/when we issue a new request.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to geoclue-2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1826290

Title:
  geoclue mozilla location api key rate limited

Status in geoclue-2.0 package in Ubuntu:
  Triaged

Bug description:
  I am using Ubuntu 19.04

  geoclue version: 0.12.99-4ubuntu2
  geoclue2 version: 2.5.2-1ubuntu1

  The key used by geoclue in ubuntu to access the mozilla location
  service appears to be rate limited.

  Here's the relevant lines in /etc/geoclue/geoclue.conf

  # URL to the wifi geolocation service. The key can currenty be anything, just
  # needs to be present but that is likely going to change in future.
  url=https://location.services.mozilla.com/v1/geolocate?key=geoclue

  The comment is wrong, using an invalid key gives a 400 error.

  $ curl https://location.services.mozilla.com/v1/geolocate\?key=random_key
  {"error":{"code":400,"message":"Missing or invalid API 
key.","errors":[{"domain":"usageLimits","message":"Missing or invalid API 
key.","reason":"keyInvalid"}]}}%

  Using the current key gives a limit reached error

  $ curl https://location.services.mozilla.com/v1/geolocate\?key=geoclue
  {"error":{"code":403,"message":"You have exceeded your daily 
limit.","errors":[{"domain":"usageLimits","message":"You have exceeded your 
daily limit.","reason":"dailyLimitExceeded"}]}}%

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/geoclue-2.0/+bug/1826290/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to