PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

PTC Account

Open PabliniBis opened this issue 9 years ago • 22 comments

bot is not working. it tries to login, but it sends error

it was working ok with my google account, until that got banned. first i used the same configuration file, but now im using the same as in template, just changing credentials and localization

https://gist.github.com/PabliniBis/e6999fda14b901aae298780314368d21 30 ago 16:57:55 [default] - Trying to read C:\PokemonGoBot\config.properties 30 ago 16:57:55 [default] - Saved start Latitude setting ("saved_latitude") is invalid, defaulting to 0.0: empty String 30 ago 16:57:55 [default] - Saved start Longitude setting ("saved_longitude") is invalid, defaulting to 0.0: empty String 30 ago 16:57:55 [default] - Logging in to game server... Exception in thread "default" com.pokegoapi.exceptions.AsyncPokemonGoException: Unknown exception occurred. at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:46) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:157) at com.pokegoapi.api.settings.Settings.updateSettings(Settings.java:94) at com.pokegoapi.api.settings.Settings.(Settings.java:81) at com.pokegoapi.api.PokemonGo.(PokemonGo.java:110) at com.pokegoapi.api.PokemonGo.(PokemonGo.java:143) at ink.abb.pogo.scraper.MainKt.startBot(Main.kt:218) at ink.abb.pogo.scraper.MainKt.startDefaultBot(Main.kt:154) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:80) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:67) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at rx.exceptions.Exceptions.propagate(Exceptions.java:58) at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:465) at rx.observables.BlockingObservable.first(BlockingObservable.java:168) at com.pokegoapi.util.AsyncHelper.toBlocking(AsyncHelper.java:38) ... 10 more Caused by: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:111) at com.pokegoapi.main.RequestHandler$1.get(RequestHandler.java:88) at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:74) at rx.internal.operators.OnSubscribeToObservableFuture$ToObservableFuture.call(OnSubscribeToObservableFuture.java:43) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.Observable.subscribe(Observable.java:9957) at rx.Observable.subscribe(Observable.java:9924) at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:445) ... 12 more Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:80) at com.pokegoapi.main.RequestHandler.run(RequestHandler.java:298) at java.lang.Thread.run(Thread.java:745)

Building 83% > :run im using the latest version from develop. running on win10 with java 1.8

I have read all the issues referring to login issues. none of them served me for good. I can login well in app. and as i said, google account was working well

Leave this sentence in your issue as proof that you have read and used this template.

PabliniBis avatar Aug 30 '16 22:08 PabliniBis

Can you give us an error message? This is wayyy too generic.

jacc avatar Aug 30 '16 22:08 jacc

Oh wait, the Pastebin had it. Are you using the JSON template? If so, you made need to set it to PTC instead of Google. Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null

jacc avatar Aug 30 '16 22:08 jacc

im trying to use pastebin, but don't know how tu use. and im using the config template, not JSON

PabliniBis avatar Aug 30 '16 23:08 PabliniBis

I don't know if PTC is supported by the config template. Pinging @Sieberkev and @FrancYescO for clarification.

jacc avatar Aug 30 '16 23:08 jacc

now i tried with the JSON and get same error

PabliniBis avatar Aug 30 '16 23:08 PabliniBis

@PabliniBis can you put a !!censored!! version of your JSON here?

jacc avatar Aug 30 '16 23:08 jacc

when this happen to me at login time 90% of time a restart will get it okay..

just try to reconfigure from a new config file, make sure you remove the json files under bot-settings folder

FrancYescO avatar Aug 30 '16 23:08 FrancYescO

Yeah, it could have just gotten hung somewhere.

jacc avatar Aug 30 '16 23:08 jacc

concurrent.ExecutionException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null

The underlaying API sends too much requests at once at the PoGo server. Restarting can be a solution, but the final solution will arrive when the new API from jabbink gets published for everyone.

Sieberkev avatar Aug 31 '16 07:08 Sieberkev

{ "latitude" : 19.4392709, "longitude" : -99.2020797, "saveLocationOnShutdown" : true, "credentials" : { "type" : "ptc", "username" : "myptcname", "password" : "mypass" }, "proxyServer" : "", "proxyPort" : "-1", "proxyType" : "SOCKS", "proxyUsername" : "", "proxyPassword" : "", "restApiPassword" : "", "speed" : 2.8, "randomSpeedRange" : 0.0, "followStreets" : [], "mapzenApiKey" : "", "googleApiKey" : "", "groupItemsByType" : false, "dropItems" : true, "uselessItems" : { "ITEM_REVIVE" : 20, "ITEM_MAX_REVIVE" : 10, "ITEM_POTION" : 0, "ITEM_SUPER_POTION" : 30, "ITEM_HYPER_POTION" : 50, "ITEM_MAX_POTION" : 50, "ITEM_POKE_BALL" : 40, "ITEM_GREAT_BALL" : 50, "ITEM_ULTRA_BALL" : 50, "ITEM_MASTER_BALL" : 10, "ITEM_RAZZ_BERRY" : 40, "ITEM_LUCKY_EGG" : -1, "ITEM_INCENSE_ORDINARY" : -1, "ITEM_TROY_DISK" : -1 }, "profileUpdateTimer" : 60, "timerWalkToStartPokestop" : -1, "randomNextPokestopSelection" : 5, "campLurePokestop" : -1, "desiredCatchProbability" : 0.4, "desiredCatchProbabilityUnwanted" : 0.0, "autotransfer" : true, "randomBallThrows" : false, "waitBetweenThrows" : false, "keepPokemonAmount" : 1, "maxPokemonAmount" : -1, "displayKeepalive" : true, "displayPokestopName" : false, "displayPokestopRewards" : true, "displayPokemonCatchRewards" : true, "displayIfPokemonFromLure" : true, "lootPokestop" : true, "catchPokemon" : true, "autoFillIncubator" : true, "sortByIv" : false, "desiredCurveRate" : 0.0, "neverUseBerries" : true, "allowLeaveStartArea" : false, "spawnRadius" : -1, "banSpinCount" : 0, "transferCpThreshold" : 400, "transferCpMinThreshold" : -1, "transferIvThreshold" : 80, "ignoredPokemon" : [ "EEVEE", "MEWTWO", "CHARMANDER" ], "obligatoryTransfer" : [ "DODUO", "RATTATA", "CATERPIE", "PIDGEY" ], "evolveBeforeTransfer" : [ "CATERPIE", "RATTATA", "WEEDLE", "PIDGEY" ], "evolveStackLimit" : 100, "useLuckyEgg" : 1, "export" : "", "guiPortSocket" : 8001, "initialMapSize" : 9, "waitChance" : 0.0, "waitTimeMin" : 0, "waitTimeMax" : 0 }

PabliniBis avatar Aug 31 '16 16:08 PabliniBis

I have restarted like million times, it always gives same error. with google acc was working perfectly

PabliniBis avatar Aug 31 '16 16:08 PabliniBis

have you tried to reconfigure from a blank config file?

FrancYescO avatar Aug 31 '16 16:08 FrancYescO

yes. i have used it with all default, just my credentials and location

PabliniBis avatar Aug 31 '16 16:08 PabliniBis

You can try the following. Delete log, build, and bot-settings folders, then rebuild and rerun. When you get struck again, delete just only the bot-settings folder and rerun it again. This helps me all the time so far. Let me know what you get !

MrBull avatar Aug 31 '16 19:08 MrBull

Have you 'activated' your PTC account by clicking the related email PTC sent you? I had the exact same issue. It let me play for some hours and then i received the above error. I think it's only an issue of PTC account activation from the email.

staurakis avatar Sep 01 '16 07:09 staurakis

i did as you said. at first, same error but in the fifth attempt, it could login. but now it says "got 0 pokestops" then it decreases map size until it goes to 1 left it like that like 30 min kept saying 0 pokestops

PabliniBis avatar Sep 01 '16 15:09 PabliniBis

Ip ban or too much Pokémon/pokestop softban i did as you said. at first, same error but in the fifth attempt, it could login. but now it says "got 0 pokestops" then it decreases map size until it goes to 1 left it like that like 30 min kept saying 0 pokestops

You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/jabbink/PokemonGoBot/issues/1258#issuecomment-244118800

FrancYescO avatar Sep 01 '16 15:09 FrancYescO

how could that be? the account is relative new

PabliniBis avatar Sep 01 '16 15:09 PabliniBis

Have you checked how many pokestops have you harvested and how many pokemons have you catch in 24 hours period? Have you changed ip to check?

staurakis avatar Sep 01 '16 16:09 staurakis

in the last 48 hrs i havent harvested pokestops and i have tried connectin my laptop to mobile network instead of wifi all same result

PabliniBis avatar Sep 01 '16 16:09 PabliniBis

Ok i understand. What is the current behavior of the official app? Cause i haven't seen any similar type of ban up to now....

staurakis avatar Sep 01 '16 16:09 staurakis

official app works perfectly

PabliniBis avatar Sep 01 '16 18:09 PabliniBis