[Bug 1826290] Re: geoclue mozilla location api key rate limited

2019-04-25 Thread Junaid Rasheed
Same.

$ 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"}]}}

Hopefully we can get Mozilla to up the limit for the API key.

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

Title:
  geoclue mozilla location api key rate limited

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1826290] Re: geoclue mozilla location api key rate limited

2019-04-25 Thread Junaid Rasheed
I tried it around 02:00 UTC on 25 April so the daily limit was probably
reset by the time you tested it. I did check around and came across this
issue on geoclue's GitLab
https://gitlab.freedesktop.org/geoclue/geoclue/issues/101

The geoclue key probably has a high daily limit but it's probably being
reached a few hours before the daily limit is reset.

** Bug watch added: gitlab.freedesktop.org/geoclue/geoclue/issues #101
   https://gitlab.freedesktop.org/geoclue/geoclue/issues/101

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

Title:
  geoclue mozilla location api key rate limited

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1826290] [NEW] geoclue mozilla location api key rate limited

2019-04-24 Thread Junaid Rasheed
Public bug reported:

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"}]}}%

** Affects: geoclue-2.0 (Ubuntu)
 Importance: Undecided
 Status: New

** Summary changed:

- geoclue mozilla location key rate limited
+ geoclue mozilla location api key rate limited

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

Title:
  geoclue mozilla location api key rate limited

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs