iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 228 forks source link

OVER_QUEY_LIMIT Issue #435

Open ghostcrawler1 opened 6 years ago

ghostcrawler1 commented 6 years ago

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

tonynkh commented 6 years ago

Have the same issue

OPaquay commented 6 years ago

Same issue

ItaloFSS commented 6 years ago

Same issue

adamkarb commented 6 years ago

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

jerme404 commented 6 years ago

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 component is in src/views/map/index.js, so you can add your key there.

adamkarb commented 6 years ago

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

jnrepo commented 6 years ago

Google lets you only call their API so many times

jerme404 commented 6 years ago

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.

mrh3yd commented 6 years ago

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.

jerme404 commented 6 years ago

Did you put an actual API key in there?

lytesenthedarc commented 6 years ago

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.

jerme404 commented 6 years ago

Still the same error OVER_QUEY_LIMIT after rebuilding?

lytesenthedarc commented 6 years ago

Yes

lytesenthedarc commented 6 years ago

should I upload my index file for review?

mrh3yd commented 6 years ago

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.

BearinErin commented 6 years ago

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

mrh3yd commented 6 years ago

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.

lytesenthedarc commented 6 years ago

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

rlam3 commented 6 years ago

Same issue.

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

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

jerme404 commented 6 years ago

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

lytesenthedarc commented 6 years ago

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.

jerme404 commented 6 years ago

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.

mrh3yd commented 6 years ago

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...

yrchern commented 6 years ago

Simply open "GoogleMap.spec.js", find

const API_KEY = 'API_KEY';

and replace 'API_KEY' with yours like this:

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

ItaloFSS commented 6 years ago

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.

jerme404 commented 6 years ago

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 commented 6 years ago

There's a PR with my changes.

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

ascenser commented 6 years ago

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

ItaloFSS commented 6 years ago

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

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

CavemanGer commented 6 years ago

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!

htyx75 commented 6 years ago

I have the same issue, i got my own API key from google, but i am not a developer. Is anyone able to help me via TeamViewer? Or compile the app with my API key? Help is really appreciated.

twelvefiftyone commented 6 years ago

@ItaloFSS
could you please help compile the app? Tried for an hour, still not working.

jerme404 commented 6 years ago

I put a new build on Google Drive if you check the gitter link posted above.

I suppose someone could make the api key configurable in the UI.

htyx75 commented 6 years ago

@jerme404 , which link do you mean?

nevermind, found it. Thanks

ItaloFSS commented 6 years ago

Here's the link https://www.dropbox.com/sh/gvrrvl8dkhzpior/AABN1dHcP0_o6lSPOZ111EL1a?dl=0

Get it now, I'm deleting the file tomorrow.

Good-luck.

htyx75 commented 6 years ago

This folder is empty...

ItaloFSS commented 6 years ago

It was uploading. Is there now.

htyx75 commented 6 years ago

Thanks, i got it. While running i get the following error:

screen shot 2017-09-03 at 22 50 32

Any solution for this?

ItaloFSS commented 6 years ago

Under Security & Privacy > Accessibility add the app, Terminal, and Script Editor (the last two are found in the app utilities folder)

htyx75 commented 6 years ago

Wonderful. Thx again

BearinErin commented 6 years ago

Thank you guys for the help! Works perfectly again.

twelvefiftyone commented 6 years ago

thanks a lot! @ItaloFSS will give another try from jerme404 advice as well.

JonathanLu2393 commented 6 years ago

@yrchern That didn't work for me

ry4meck commented 6 years ago

So I downloaded git hub, all the source files and found where I needed to add my API in the source code text file. Can someone walk me through the process of compiling everything into a new app? Do I need another program. Sorry completely new at this.

jnrepo commented 6 years ago

@ry4meck

$ git clone https://github.com/iam4x/pokemongo-webspoof.git
$ cd pokemongo-webspoof && npm install
$ npm run dev
ry4meck commented 6 years ago

@jnrepo where is that done from? from the github desktop app or is there something else I'm missing?

jnrepo commented 6 years ago

@ry4meck did you use terminal to clone the repository then make the code changes? Or did you download from releases?

You have to use the terminal to build the program after you make the code changes.

ry4meck commented 6 years ago

@jnrepo downloaded the releases to desktop. main folder is " pokemongo-webspoof-master". Then I found the file that had the API needed changed, changed it via text file and then saved. That's basically where I am. So I guess I need to open terminal and figure how to import that and then build everything

bgou commented 6 years ago

there are 2 ways to change this:

Preferred

pokemongo-webspoof/src/config/api.js

Change the apiKey value to your own: apiKey: 'REPLACE_WITH_YOUR_KEY'

Other (Not preferred)

pokemongo-webspoof/src/views/map/index.js

Change

          <GoogleMap
            ...
            apiKey={ MapsApi.apiKey }>

to

          <GoogleMap
            ...
            apiKey="YOUR_KEY">
pospi12 commented 6 years ago

So I've been using this for a few months and today I got the error OVER_QUEY_LIMIT, after reading this I got my new API key, but I cannot find out how to add this on my iMac. I tried reading all the above info, but no idea where to find pokemongo-webspoof/src/config/api.js etc. Can somebody give me a walkthrough?