jabbink / PokemonGoBot

DEFUNCT - Bot that plays Pokemon Go
https://www.pogobot.club/
GNU General Public License v3.0
559 stars 232 forks source link

How to fill in bot.json file? #1312

Closed zhoushifeng8 closed 7 years ago

zhoushifeng8 commented 7 years ago

no explain how to fill in bot.json, if i using google account not ptc, how to set?

jabbink commented 7 years ago

Hi @zhoushifeng8,

It looks like there is some information missing from your ticket that will be needed in order to diagnose and fix the problem at hand. Please take a look at the Contribution Guidelines and default Issue template (the one you did not follow), which will tell you exactly what your ticket has to contain in order to be processable.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two days (until 2016-11-16 04:25) I'll close this ticket so it doesn't clutter the bug tracker.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

Cypherke commented 7 years ago

use this template: https://github.com/jabbink/PokemonGoBot/blob/develop/json-template.json

fill in goole-auto instead of ptc and email as username

zhoushifeng8 commented 7 years ago

@Cypherke if i using google account how to fill? is following correct? Thank you "credentials" : { "type" : “ptc”, "username" : “XXXXXXX@gmail.com", "password" : “Ghllkh123" },

zhoushifeng8 commented 7 years ago

@Cypherke sorry, saw google-auto, i will try

zhoushifeng8 commented 7 years ago

@Cypherke sorry, it not working still pop up following message

Exception in thread "bot" com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 start byte 0x80 at [Source: /Users/zhoushifeng/Desktop/pokemon go/./bot-settings/bot.json; line: 8, column: 16] at [Source: /Users/zhoushifeng/Desktop/pokemon go/./bot-settings/bot.json; line: 8, column: 5](through reference chain: ink.abb.pogo.scraper.Settings["credentials"]) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:379) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:339) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1589) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:513) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:396) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1194) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:314) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2731) at ink.abb.pogo.scraper.services.BotService.load(BotService.kt:69) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$$inlined$forEach$lambda$1.invoke(PokemonGoBotApplication.kt:85) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$$inlined$forEach$lambda$1.invoke(PokemonGoBotApplication.kt:67) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 start byte 0x80 at [Source: /Users/zhoushifeng/Desktop/pokemon go/./bot-settings/bot.json; line: 8, column: 16] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidInitial(UTF8StreamJsonParser.java:3542) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._decodeCharForError(UTF8StreamJsonParser.java:3288) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3520) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2683) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:832) at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:79) at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:142) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:488) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:511)

Cypherke commented 7 years ago

there's an error in your json file... at [Source: /Users/zhoushifeng/Desktop/pokemon go/./bot-settings/bot.json; line: 8, column: 16]

zhoushifeng8 commented 7 years ago

@Cypherke I change PTC to google-auto then this error message come out