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

Request_Denied when clicking on location #461

Open
maxpac opened this issue Dec 4, 2018 · 37 comments
Open

Request_Denied when clicking on location #461

maxpac opened this issue Dec 4, 2018 · 37 comments

Comments

@maxpac
Copy link

maxpac commented Dec 4, 2018

Hi,

Facing this issue when I'm not able to click on a location to spoof (see photo)

image

Anyone facing the same issue?

@fritzggerard
Copy link

this might occur when the MAP API or Location API reached the cota limit. You have to add your own MAPs API key

@maxpac
Copy link
Author

maxpac commented Dec 4, 2018

how do i do that?

@akattamis
Copy link

Having the same issue.

@MattyTesar
Copy link

MattyTesar commented Dec 4, 2018

Can be solved by using your own Maps API key, although this requires to setup a Google Cloud Platform project.
After setting up the project, you can obtain the key here https://console.cloud.google.com/google/maps-apis/
Next clone the webspoof repository by following steps from Readme section "Develop", open src/config/api.js and replace the api key there.
After that, you can run (npm run dev) or build (npm run build) the app for use with your own api key. (This should prevent the issue further, unless you manage to reach the api free quotas)

@molonlabe88
Copy link

Matty, can you dumb it down. I downloaded the nodejs but then what?

@MattyTesar
Copy link

MattyTesar commented Dec 5, 2018

For obtaining the api key, please follow this https://developers.google.com/maps/documentation/javascript/get-api-key . You will be asked to create or link a billing account though, which requires you enter your credit card information. But if you'll be using this only for the webspoof app, no excessive use, you won't be billed anything. (To be sure you can setup a budget of $0 to be notified in case of any charge)
(Make sure that you enable Maps JavaScript API and Directions API - check here https://console.cloud.google.com/google/maps-apis/overview)

For the next steps, open terminal.app on your mac, check you have NodeJS installed (eg. by running npm -v. If you get "command not found", install nodejs from here https://nodejs.org/en/ ), then go to the folder where you want to clone this repository (by typing cd 'path_to_folder'), run git clone https://github.com/iam4x/pokemongo-webspoof.git, cd pokemongo-webspoof and npm install
Then proceed to replace the api key in path_to_folder/pokemongo-webspoof/src/config/api.js and save the file.
Then enter npm run build in terminal, and after it finishes, you can find freshly built pokemongo-webspoof.app in pokemongo-webspoof-darwin-x64 folder.

Is that understandable, or are you having trouble with any specific step/s?

@CavemanGer
Copy link

Hi, unfortunately Request denied even after replacing with own key. Any suggestions?

@MattyTesar
Copy link

Did you build the app after saving the changes and run the new version? Also, make sure you have Maps JavaScript or Embed API key with unrestricted use (you can check here https://console.cloud.google.com/google/maps-apis/overview - open the desired api detail from 'Enabled APIs' and then look to 'Credentials' section)

@CavemanGer
Copy link

For some reason the api key was not activated. Resolved this, now it works. Thanks a lot Matty!

@Blistex1899
Copy link

Thanks a lot Matty for your Help.
After replacing the API Key and build the app the error Google Maps API error 400 has gone.
But "Request Denied" is still their. Which API ´s has to be activated?
Thank´s

@Blistex1899
Copy link

Direction API has also be activated, after that it works fine.

Thanks

@MattyTesar
Copy link

Direction API has also be activated, after that it works fine.

You're right, Directions API is quite essential for the autopilot feature. Thanks for pointing that out 👍

@megusta63
Copy link

megusta63 commented Dec 5, 2018

I get error messages after these steps:
cd pokemongo-webspoof && npm install
npm run build

macbook-air:~ User$ CD pokemongo-webspoof
macbook-air:~ User$ CD pokemongo-webspoof && npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/xyz/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/xyz/package.json'
npm WARN xyz No description
npm WARN xyz No repository field.
npm WARN xyz No README data
npm WARN xyz No license field.

if i understand the errormessage right its because the package.json file cant be found, but when i look in the pokemongo-webspoof folder its inside. so i copied the file in the root directory (user).. after this the installation "worked" but still with warnings..

After this i searched for the pokemongo-webspoof-darwin-x64, but i cant find it.
i can find a node_modules but no pokemongo.webspoof in it..

isnt it possible to change the API Key in an existing Pokemon Webspoof APP? There should be an api.js file too..

sorry for this nooby questions but im new in MAC..

@MattyTesar
Copy link

MattyTesar commented Dec 5, 2018

@megusta63 these npm install warnings aren't really important, if you see node_modules in your pokemongo-webspoof folder then the installation probably worked. Did you run npm run build after that, and if so, do you get any errors there? (make sure you run this from inside the pokemongo-webspoof folder)

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

i'm getting npm command not found. Sorry, i'm bad at codings and commands

@MattyTesar
Copy link

@maxpac have you installed NodeJS? You can try using absolute path to the command, which should be /usr/local/bin/npm
If you're still getting "command not found" or "No such file or directory", try installing node with the package from https://nodejs.org/en/

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

sorry, forgot i had to install node.js. so i have followed all the steps, ensured my api has no restrictions but i'm still getting Request Denied,

I've also ensured both Map Javascript API and Directions API are enabled.

@megusta63
Copy link

@MattyTesar worked! thanks, i run from the root directory first because of this it doesnt worked

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

@megusta63 Thanks for bringing this up. No wonder i couldn't get through.

However, after "cd pokemongo-webspoof and npm install", i'm getting ACTION Regenerating Makefile. What's this?

@MattyTesar
Copy link

MattyTesar commented Dec 5, 2018

@maxpac can you try removing node_modules folder and package.lock file and running npm install again (from inside pokemongo-webspoof folder). Also make sure you have nodejs version 6+ ( run node -v )

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

@MattyTesar ok i'm able to to pass npm install. The problem right now is npm run build. I'm getting this error Failed at the pokemongo-webspoof@1.2.1 build script. Any idea?

The first error code line was ELIFECYCLE

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

IT FINALLY WORKED! Had to run npm run build first, change the API key in api.js, run npm run build again. Not sure why an additional steps but it works at least.

Thanks again everyone! Especially @MattyTesar

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

Sorry to trouble again. I'm able to build, run without issues, able to teleport but my character doesn't respond to my movements at all. I'm getting this error.

image

@MattyTesar
Copy link

@maxpac
Copy link
Author

maxpac commented Dec 5, 2018

Cause one of the troubleshooting was to delete the app and reinstall it. So does that mean i have do npm run build after deleting again?

@MattyTesar
Copy link

That shouldn't be necessary, unless you build the app with a different version number. You just need to add your build of pokemongo-webspoof.app to the accessibility apps in System Preferences > Security & Privacy > Privacy tab > Accessibility and check the checkbox next to it.
Or bypass this altogether by opening Script Editor.app and running the following code (if you do this, don't use "Auto update Xcode location" in the spoof app)

repeat
	tell application "System Events" to tell process "Xcode"
		click menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1
	end tell
	delay 0.5
end repeat

@berrymetal
Copy link

Hi there,
I'm sorry to ask but is there any free of cost solution to get Webspoof to work again like before?
Thank you

@MattyTesar
Copy link

You mean without the need to setup billing account? Because even with it, it's basically free of cost, unless you're planning on making more than about 1300 directions requests (autopilot target updates) per day.
https://cloud.google.com/maps-platform/pricing/sheet/

@molonlabe88
Copy link

molonlabe88 commented Dec 6, 2018

I enabled Maps API and now maps load without the watermark but I am still getting the "request denied"

Well, it was loading fine. Now its back to the "development purposes only"

now i'm getting over_query_limit

@molonlabe88
Copy link

You mean without the need to setup billing account? Because even with it, it's basically free of cost, unless you're planning on making more than about 1300 directions requests (autopilot target updates) per day.
https://cloud.google.com/maps-platform/pricing/sheet/

or what about a way that would let us update the API without as many steps. I think i've almost got this time, but I don't follow what to do if i have to reinstall web spoof. I'd even donate a few bucks to someone who made it easier.

@k-webdesign
Copy link

Any chance to switch to openstreetmap or something else? @iam4x

@maxpac
Copy link
Author

maxpac commented Dec 6, 2018

@MattyTesar seems that rebuilding did the trick for me.

Anyway, what counts as 1 direction request? Say for instance if i walk from 1 place to another, maybe 10km, how many direction requests will that be?

@CavemanGer
Copy link

I enabled Maps API and now maps load without the watermark but I am still getting the "request denied"

Well, it was loading fine. Now its back to the "development purposes only"

now i'm getting over_query_limit

Well, it was working fine for just one day. Now I've got also "over_query_limit" and watermark back again. Got a new key, rebuild, same thing. I'm a bit lost now...

@taylorsm
Copy link

taylorsm commented Dec 6, 2018

I enabled Maps API and now maps load without the watermark but I am still getting the "request denied"
Well, it was loading fine. Now its back to the "development purposes only"
now i'm getting over_query_limit

Well, it was working fine for just one day. Now I've got also "over_query_limit" and watermark back again. Got a new key, rebuild, same thing. I'm a bit lost now...

Alright, so what APPEARS to have worked is that my billing account on google was not associated with a project/API. If you go into your API and look for quota, it will show you where you are hitting over the limit and if you just kinda follow how to increase the limit, then you will see.

Doesn't appear as if running webspoof does very many requests.

@berrymetal
Copy link

berrymetal commented Dec 6, 2018

nothing is happening when I do the last step in terminal "npm run build"
I'm sorry i'm a noob when it comes to these stuff and I'm really trying to understand what i'm doing incorrectly.

Edit: nevermind, I just had to be patient and wait for it to finish. Everything works fine so far! Thank you so much @MattyTesar :)

@Dooch88
Copy link

Dooch88 commented Dec 24, 2018

And how can you fix this if you don't have . credit card? Are the MAp API's connected to your own computer? So a fresh re-install could also do the trick?

@Snoverfield
Copy link

Been having this issue for awhile and been just running routes with gpx files to work around this. But would be nice to be able to move across the map easier without tapping arrow keys or creating an entire gpx file each time.

Anywho, I'm a total noob at this and people on here have been super helpful. @MattyTesar I'm trying your fix and I got to the point of

> For the next steps, open terminal.app on your mac, check you have NodeJS installed (eg. by running npm -v. If you get "command not found", install nodejs from here https://nodejs.org/en/ ), then go to the folder where you want to clone this repository (by typing cd 'path_to_folder'), run git clone https://github.com/iam4x/pokemongo-webspoof.git, cd pokemongo-webspoof and npm install
_> Then proceed to replace the api key in path_to_folder/pokemongo-webspoof/src/config/api.js and save the file.

Then enter npm run build in terminal, and after it finishes, you can find freshly built pokemongo-webspoof.app in pokemongo-webspoof-darwin-x64 folder.

Is that understandable, or are you having trouble with any specific step/s?_

Do I type exactly 'path_to_folder' or do I need to manually enter an actual folder name. I copied what you had exactly and no such folder or directory was found. And how do I find the folder I wanna use. This step I'm totally lost. Any help or explanation would be appreciated. Thanks!

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