Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location services not working well due to rate limiting #197

Closed
davidmhewitt opened this issue May 5, 2019 · 4 comments
Closed

Location services not working well due to rate limiting #197

davidmhewitt opened this issue May 5, 2019 · 4 comments

Comments

@davidmhewitt
Copy link
Member

davidmhewitt commented May 5, 2019

I gave myself the task to look into why location services weren't working properly anymore. Aside from the agent not running (fixed in elementary/pantheon-agent-geoclue2#31), the MLS API that Geoclue uses is being rate limited.

In /etc/geoclue/geoclue.conf, we can see we're using this URL (where the API key is geoclue):
https://location.services.mozilla.com/v1/geolocate?key=geoclue

At the time of writing, that's giving me 403 errors with "You have exceeded your daily limit.". If we sign up for an elementary specific API key and configure it in our patched geoclue package, at least we won't be sharing a key among all the other OSes that have left the default config in and are then less likely to get rate limited, info here:
https://location.services.mozilla.com/api

There's also info on that page about how to run your own instance of the MLS service which may be good for respecting privacy. But mozilla are pretty respectable anyway, so 🤷‍♂️

@danirabbit
Copy link
Member

My guess is that @btkostner would rather us sign up with Mozilla, but pinging him in case

@danirabbit
Copy link
Member

I sent an email to the Mozilla locations services team. I'll update here when I hear back :)

@btkostner
Copy link
Contributor

It wouldn't be hard to host this our self. It might bump our hosting cost though.

@danirabbit
Copy link
Member

Heard back from the Mozilla team and they’re gonna issue us a key. So sounds like we can do that until we decide we need/want our own server

codygarver pushed a commit to elementary/os-patches that referenced this issue May 8, 2019
The `geoclue` key was getting rate limited, use our own.

Fixes elementary/os#197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants