pokemongo-webspoof icon indicating copy to clipboard operation
pokemongo-webspoof copied to clipboard

OVER_QUEY_LIMIT Issue

Open ghostcrawler1 opened this issue 8 years ago • 56 comments

Hello,

Thank you for this app, its been working great until today when I tried to run a location search and I've been receiving the error OVER_QUEY_LIMIT. Any ideas how I can resolve this issue.

Thanks

ghostcrawler1 avatar Sep 02 '17 11:09 ghostcrawler1

Have the same issue

tonynkh avatar Sep 02 '17 12:09 tonynkh

Same issue

OPaquay avatar Sep 02 '17 15:09 OPaquay

Same issue

ItaloFSS avatar Sep 02 '17 15:09 ItaloFSS

Same issue, likely we'll have to go change some google keys manually

adamkarb avatar Sep 02 '17 16:09 adamkarb

Yep, solve this by adding your own API key from https://developers.google.com/maps/documentation/javascript/get-api-key

It's using google-map-react, see here to add your API key.

The <GoogleMap> component is in src/views/map/index.js, so you can add your key there.

jerme404 avatar Sep 02 '17 17:09 jerme404

Thanks! Why did it all crap out at once I wonder?

adamkarb avatar Sep 02 '17 17:09 adamkarb

Google lets you only call their API so many times

jnrepo avatar Sep 02 '17 18:09 jnrepo

I actually didn't use the recommended bootstrapURLKeys, I used the deprecated apiKey, like this

<GoogleMap
            ref={ (ref) => { this.map = ref } }
            zoom={ settings.zoom.get() }
            center={ [ latitude, longitude ] }
            onClick={ this.handleClick }
            options={ () => this.mapOptions }
            onGoogleApiLoaded={ this.handleGoogleMapLoaded }
            yesIWantToUseGoogleMapApiInternals={ true }
            apiKey={ MapsApi.apiKey }>

Where MapsApi.apiKey is in a configuration file I added, but you can just put in a string like

apiKey={ 'YOUR_API_KEY_HERE' }

I'll submit a PR with my changes in a bit.

jerme404 avatar Sep 02 '17 18:09 jerme404

I just tried jerme404's solution; mine now looks like this:

<GoogleMap
            ref={ (ref) => { this.map = ref } }
            zoom={ settings.zoom.get() }
            center={ [ latitude, longitude ] }
            onClick={ this.handleClick }
            options={ () => this.mapOptions }
            onGoogleApiLoaded={ this.handleGoogleMapLoaded }
            yesIWantToUseGoogleMapApiInternals={ true }
            apiKey={ 'MY_API_KEY' }>

And still no work. Sad face. Any suggestions? I have a 7-year-old champing at the bit to catch some pocket monsters.

mrh3yd avatar Sep 02 '17 19:09 mrh3yd

Did you put an actual API key in there?

jerme404 avatar Sep 02 '17 19:09 jerme404

I'm having the same issue. My code currently looks the same as yours, with apiKey={ 'YOUR_API_KEY_HERE' }

YOUR_API_KEY_HERE has been replaced with an api key generated by 'google maps apis' website. Still not working unfortunately.

lytesenthedarc avatar Sep 02 '17 19:09 lytesenthedarc

Still the same error OVER_QUEY_LIMIT after rebuilding?

jerme404 avatar Sep 02 '17 19:09 jerme404

Yes

lytesenthedarc avatar Sep 02 '17 19:09 lytesenthedarc

should I upload my index file for review?

lytesenthedarc avatar Sep 02 '17 19:09 lytesenthedarc

Yes, I definitely pasted in the API key I got from Google in place of MY_API_KEY

Is there a step I'm missing? I edited the file, made the above changes, saved the file, and re-opened the spoof app.

mrh3yd avatar Sep 02 '17 19:09 mrh3yd

I also followed the instructions for adding a new API and it did not fix it.

BearinErin avatar Sep 02 '17 20:09 BearinErin

I would also be happy to upload or email my index.js file, or use your recommended steps of creating another config file; I'm not 100% sure how to do the latter.

mrh3yd avatar Sep 02 '17 20:09 mrh3yd

Here's a copy of my non-functioning file index.js.zip

lytesenthedarc avatar Sep 02 '17 20:09 lytesenthedarc

Same issue.

Does anybody know if using gitter to collaborate right now to get things working by tonight.

https://gitter.im/pokemongo-webspoof/Lobby#

rlam3 avatar Sep 02 '17 20:09 rlam3

You have to actually rebuild the project, it won't work by just editing the index.js file.

jerme404 avatar Sep 02 '17 20:09 jerme404

Pardon my ignorance, is that the same as restarting the program, or is there a rebuild process we should be doing. And thank you very much for your help on this.

lytesenthedarc avatar Sep 02 '17 20:09 lytesenthedarc

If you navigate to the project in a terminal window, just type npm run build to build a new version. That will create a new folder (if it's not there already) called 'pokemongo-webspoof-darwin-x64' and your new build will be in there.

jerme404 avatar Sep 02 '17 21:09 jerme404

Yep, that doesn't so much work for me either. Here's a screenshot from Terminal:

https://ibb.co/i8O1jF

Sorry to be such a pain...

mrh3yd avatar Sep 02 '17 21:09 mrh3yd

Simply open "GoogleMap.spec.js", find

const API_KEY = 'API_KEY';

and replace 'API_KEY' with yours like this:

const API_KEY = 'AI.........';

yrchern avatar Sep 03 '17 00:09 yrchern

Im getting the following error while building. Any ideas?

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.output.path: The provided value "./dist" is not an absolute path!

ItaloFSS avatar Sep 03 '17 13:09 ItaloFSS

In webpack.config.babel, change the output path like this

output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'index.js',
    chunkFilename: '[name].js'
  },

then add require path up top like

const path = require('path');

jerme404 avatar Sep 03 '17 14:09 jerme404

There's a PR with my changes.

https://github.com/iam4x/pokemongo-webspoof/pull/436

jerme404 avatar Sep 03 '17 14:09 jerme404

Is there a simplified fix for this yet for those of us who apparently aren't quite as tech-savvy? I've tried following the various tips in this thread but I'm getting no results, and can't even find some of the files referenced, like GoogleMap.spec.js

ascenser avatar Sep 03 '17 15:09 ascenser

jerme404, thanks for the help. I got it working.

ascenser if you need help, I can compile the app for you.

ItaloFSS avatar Sep 03 '17 17:09 ItaloFSS

I can't find the file where I have to put my generated key in. Programming is not my strength :-(

Is there anybody who could help me adding the key and rebuild the project?

Thanks in advance!

CavemanGer avatar Sep 03 '17 18:09 CavemanGer