Closed mboneil10 closed 5 years ago
Came here to create an issue for this... you beat me to it (noticed it while helping a passenger on 39 today).
If you're able to determine if it's just a billing issue, we can contact PVTA.
@Anbranin, can you assist @mboneil10 with this? You were probably the last person to deploy this app.
@sherson not sure what that has to do with anything, and @mboneil10 was there with me, but of course I'm willing to assist. We need credentials to log into whatever accounts on iTunes and Google Play there are. I don't have them.
FWIW, the username in Sept 1, 2017 meeting notes is pvtadeveloper@gmail.com
. I didn't have LastPass at the time, so I didn't save it or write it down anywhere (hooray). Worst case scenario, could we reset it?
I've got it, no worries.
To clarify, this is not an issue with the mobile apps (iTunes, Google Play). The issue is with the Google maps API and billing, which changed in May:
In addition, this change will require you to enable billing and associate it with all of your Google Maps Platform projects.
We weren’t sure what account was used for that (looked a couple days ago and didn’t find it).
We have the credentials for logging in to Apple's dev site with pvtadeveloper@gmail.com
but I think that account may have been setup by PVTA later, in which case it wouldn't help us for this. But just to confirm, @mboneil10 are you able to login to the Google API console with it?
I attempted to email @akaplo in case his account was used for this (his umass email account is no longer active so it bounced). We may need to generate a new API key.
I emailed PVTA about getting a credit card for billing information.
@mboneil10 and @Anbranin: Can you figure out how to check the site's usage? I expect PVTA will want to know how close we are to actually having to pay anything.
Also for reference: https://cloud.google.com/maps-platform/user-guide/
Also, for the record, this all seemed somewhat vaguely familiar... it's because @akaplo contacted me months ago about impending Google maps API billing changes, but that got lost in the shuffle. So this is my fault, not his.
@sherson sorry I wasn't more aggressive on this when I messaged you; I really didn't think we'd hit the upper limit. I do still have federated access to the API console through my personal Google account, so if you need a hand taking care of it let me know! akaplowitz@alum.cs.umass.edu is me now if you ever need me.
FYI, the past 24 hours have yielded 3035 total Maps API requests
Should I find PVTrAck already on Google Cloud?
Because it isn't with pvtadeveloper@gmail.com
PVTA said they're OK with giving us a credit card. I'm just waiting for the money person to have a chance to do that.
@akaplo and @mboneil10 can you coordinate getting console access to pvtadeveloper@gmail.com?
For reference, the current projects are:
Project: pvtrack - web (975704128035) Project: pvtrack - developer (152292633987)
Also, please confirm which SKU we're using from https://cloud.google.com/maps-platform/pricing/sheet/
Billing is all set. @mboneil10 is working on generating a new API key (for pvtadeveloper@gmail.com).
Alright, generated a new API key and added it to the MapService. Things to note:
https://m.pvta.com/*
. It's recommended to do add a referrer to the before using the key in production. (I know that we get requests from swagger, but I'm not sure if it matters here.)Well, now I know the new API key is definitely working because it restricted me from using it in development. Kind of humorous. I'll change that now, so the API is also restricted to http://localhost:8100/*
Two things:
Okay, I'm not sure how to use different keys for dev versus production. Do I need to generate another key? I'll figure it out if no one knows.
Got it. I'll look into that. Thanks @werebus
Broken again for some reason?
@dfaulken do you have time to look into this?
I could look into it if @dfaulken doesn't have time. Let me know, I'd be interested in seeing what's going on.
Will look into tomorrow.
Tried looking into this today, I don't have the credentials to look at the key in the Google developer console.
Dave, would you like me to send those to you via LastPass? Not sure if the credentials have changed.
Probably related, in the JS console:
You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors
The quotas themselves were fine, but our entire Google Cloud Platform account had finished its free trial. At @sherson's request, I upgraded the account, and things appear normal now.
@sherson I'll leave it to you for official closeout once we do whatever we need to to confirm that things look good now.
Yep, looks good. Thanks.
Route map looks like this for all routes (grayed out with "For development purposes only").
Google prompts with:
@werebus researched it and found it has to do with our API key. Either we're using it too much, didn’t pay enough, or something else.