maierfelix / POGOserver

Pokemon GO server emulator
GNU General Public License v3.0
460 stars 198 forks source link

how to fix webapi #256

Closed kyubiSSJ closed 8 years ago

kyubiSSJ commented 8 years ago

fixed thanks to qnzboi102 and Cronick

qnzboi102 commented 8 years ago

Instead of using the IP address use localhost/(whatever your folders name)

This worked for me

qnzboi102 commented 8 years ago

For example localhost/api

kyubiSSJ commented 8 years ago

i tried the server work the api folder is in htdocs\api and when i try to connect to the api this error show up

[Console] API is disabled! Denied API access for 127.0.0.1:3000!

qnzboi102 commented 8 years ago

Did u install the api branch in the camp folder

On Sunday, October 2, 2016, kyubiSSJ notifications@github.com wrote:

i tried the server work the api folder is in htdocs\api and when i try to connect to the api this error show up [Console] API is disabled! Denied API access for 127.0.0.1:3000!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maierfelix/POGOserver/issues/256#issuecomment-251003815, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWjwdbwqbjCQzEM6kUnEAfeKB81nMymks5qwD7dgaJpZM4KMJbu .

Sent from My iPhone 6+

kyubiSSJ commented 8 years ago

there is any guide to install this

qnzboi102 commented 8 years ago

Read the wiki I believe it's the 3rd or 4rt one about installing the API and making your own

On Sunday, October 2, 2016, kyubiSSJ notifications@github.com wrote:

there is any guide to install this

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maierfelix/POGOserver/issues/256#issuecomment-251004289, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWjwT67z9F12V2OHv2G9lpBcRWYE5Mcks5qwEEjgaJpZM4KMJbu .

Sent from My iPhone 6+

kyubiSSJ commented 8 years ago

can u give me a link to how to setup webapi or help me start the webapi what they talk about ".safe" file

qnzboi102 commented 8 years ago

Follow this wiki

https://github.com/maierfelix/POGOserver/wiki/How-to-setup-API--services-through-Google-Console

On Sunday, October 2, 2016, kyubiSSJ notifications@github.com wrote:

can u give me a link to how to setup webapi or help me start the webapi

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maierfelix/POGOserver/issues/256#issuecomment-251008366, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWjwacgGiMHQlad7WnqmerxYsAB4oN3ks5qwFMUgaJpZM4KMJbu .

Sent from My iPhone 6+

kyubiSSJ commented 8 years ago

i uploaded some pictures and

console image

![image](https://cloud.githubusercontent.com/assets/1689817/19025371/9b58c82a-8920-11e6-8c50-47a844c038fb.png

api folder ) ![image](https://cloud.githubusercontent.com/assets/1689817/19025373/a04fb47e-8920-11e6-8a35-fe76e202ce98.png

api config )

image

this is my cfg cfg.zip

if u can check it i just keep getting this error i made all of the steps in the wiki page u sent and i still get this error

qnzboi102 commented 8 years ago

In your browser use localhost/api

Try that I just got mine working today I was about to give up and I tried that and it worked for me.

Don't put your ip or the 3000. Just localhost/api

On Sunday, October 2, 2016, kyubiSSJ notifications@github.com wrote:

i uploaded some pictures and

console [image: image] https://cloud.githubusercontent.com/assets/1689817/19025421/297f3238-8921-11e6-93f8-fdbeff8f3044.png

![image](https://cloud.githubusercontent.com/assets/ 1689817/19025371/9b58c82a-8920-11e6-8c50-47a844c038fb.png

api folder

https://cloud.githubusercontent.com/assets/1689817/19025371/9b58c82a-8920-11e6-8c50-47a844c038fb.png ) ![image](https://cloud.githubusercontent.com/assets/ 1689817/19025373/a04fb47e-8920-11e6-8a35-fe76e202ce98.png

api config

https://cloud.githubusercontent.com/assets/1689817/19025373/a04fb47e-8920-11e6-8a35-fe76e202ce98.png )

[image: image] https://cloud.githubusercontent.com/assets/1689817/19025411/006f260a-8921-11e6-8ce1-3211c9e6104e.png

this is my cfg cfg.zip https://github.com/maierfelix/POGOserver/files/505362/cfg.zip

if u can check it i just keep getting this error i made all of the steps in the wiki page u sent and i still get this error

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maierfelix/POGOserver/issues/256#issuecomment-251010285, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWjwZFlrwVJsBY35W68wnTQrkqH5hY8ks5qwFnmgaJpZM4KMJbu .

Sent from My iPhone 6+

Cronick commented 8 years ago

In your cfg.js for the POGOserver, you need to add 127.0.0.1:3000 to API_ALLOWED_HOSTS

qnzboi102 commented 8 years ago

Damn I knew I was forgetting something cool thanks I couldn't remember what it was

On Monday, October 3, 2016, Cronick notifications@github.com wrote:

In your cfg.js for the POGOserver, you need to add 127.0.0.1:3000 to API_ALLOWED_HOSTS

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maierfelix/POGOserver/issues/256#issuecomment-251059893, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWjwZgUSKFICvbWsIx3sCEJMr6rhHrlks5qwMZ4gaJpZM4KMJbu .

Sent from My iPhone 6+