RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Game crashes once I start up with google

Open ghost opened this issue 10 years ago • 16 comments

https://gyazo.com/6a3409175f6c548e4f8fd784f9af18f2

ghost avatar Jul 28 '16 05:07 ghost

yeah....iuno i just noticed that too

DetectiveSquirrel avatar Jul 28 '16 05:07 DetectiveSquirrel

I might suggest reverting back to manually adding onto the code, and displaying a link to google.com/device

see if that changing anything if not, it could be how it is getting the code iteself

ghost avatar Jul 28 '16 05:07 ghost

ive used my 1.6.2.0 version that was compiled yesterday, same thing so i dont think the bot is the problem.

what im seeing in logs is that its not getting the code at all.

DetectiveSquirrel avatar Jul 28 '16 05:07 DetectiveSquirrel

Its failing on this right here so something funky going on

thread.SetApartmentState(ApartmentState.STA); //Set the thread to STA thread.Start();

DetectiveSquirrel avatar Jul 28 '16 06:07 DetectiveSquirrel

I'm hearing that other bots aren't getting codes instead, if that helps at all.

ghost avatar Jul 28 '16 06:07 ghost

I think it might be because all the bots are using one same web application? Creating our own might fix the problem

brianzhouzc avatar Jul 28 '16 06:07 brianzhouzc

I think google changed something and the bot fails to generate the code needed to log in once It fails on this part var thread = new Thread(() => Clipboard.SetText(deviceCode.user_code)); //Copy device code because it cannot send a null usercode to the clipboard..

Kagelol avatar Jul 28 '16 06:07 Kagelol

that was my guess, 0% clue how it even works anyway , fucking lost my auth key :C

DetectiveSquirrel avatar Jul 28 '16 06:07 DetectiveSquirrel

From what i can gather the bot uses a google ClientID to generate the codes. My guess would be Google banned the ClientID its been using, its a static string, so we all have been using the same one im guessing https://developers.google.com/identity/sign-in/devices

        private const string OauthTokenEndpoint = "https://www.googleapis.com/oauth2/v4/token";
        private const string OauthEndpoint = "https://accounts.google.com/o/oauth2/device/code";
        private const string ClientId = "848232511240-73ri3t7plvk96pj4f85uj8otdat2alem.apps.googleusercontent.com";
        private const string ClientSecret = "NCjF1TLi2CcY6t5mt0ZveuL7";

Kagelol avatar Jul 28 '16 06:07 Kagelol

Going off of past experiences, the API uses could of been maxed for the day. or, banned as stated before

TehPirat3 avatar Jul 28 '16 06:07 TehPirat3

if I use my own ClientId and ClientSecret key, it can sign in but will fail on client.SetServer().

var serverResponse = await _httpClient.PostProto(Resources.RpcUrl, serverRequest);

it seems can not get the right serverResponse.

hysyzq avatar Jul 28 '16 06:07 hysyzq

Updating with new auth

DetectiveSquirrel avatar Jul 28 '16 06:07 DetectiveSquirrel

hmm still broken ._. da fuck we do

DetectiveSquirrel avatar Jul 28 '16 06:07 DetectiveSquirrel

You got halfway there bud

ghost avatar Jul 28 '16 06:07 ghost

still fail in client.SetServer().

var serverResponse = await _httpClient.PostProto(Resources.RpcUrl, serverRequest);

it seems can not get the right serverResponse from the "https://pgorelease.nianticlabs.com/plfe/rpc"

hysyzq avatar Jul 28 '16 06:07 hysyzq

Looks to me like it cannot set the api url for the client

Kagelol avatar Jul 28 '16 06:07 Kagelol