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

WARN: Unable to handle welcome cache #23

Closed
k0mar12 opened this issue Jan 4, 2023 · 4 comments
Closed

WARN: Unable to handle welcome cache #23

k0mar12 opened this issue Jan 4, 2023 · 4 comments

Comments

@k0mar12
Copy link

k0mar12 commented Jan 4, 2023

Hello.

While trying to run dota like this:

func runDota(c *steam.Client) {
  log := &log.Logger{
  Out:       os.Stderr,
  Formatter: new(log.TextFormatter),
  Hooks:     make(log.LevelHooks),
  Level:     log.DebugLevel,
  }
  
  game := dota2.New(c, log)
  
  game.SayHello()
  game.SetPlaying(true)
}

Got this warn:

DEBU[0001] sending hello to GC                          
DEBU[0001] received GC welcome                          
WARN[0001] unable to handle welcome cache                error="unknown shared object type id: 2012"
DEBU[0001] connection status changed                     new=GCConnectionStatus_HAVE_SESSION old=GCConnectionStatus_NO_SESSION
DEBU[0001] unhandled cache issue (ignore)                error="unknown shared object type id: 7"

Same issue exist in node-dota2.

@k0mar12 k0mar12 changed the title Unable to handle welcome cache WARN: Unable to handle welcome cache Jan 4, 2023
@k0mar12
Copy link
Author

k0mar12 commented Jan 4, 2023

In node-dota2 i got next error:

Illegal wire type for field Message.Field .CMsgSOCacheSubscribed.service_list: 2 (0 expected)

So, perhaps, problem in protobuf.

@k0mar12
Copy link
Author

k0mar12 commented Jan 4, 2023

I have spent one day to get basics of go and one more to dig into this module to get same error as in node-dota 2 😂
Life is good :)

@k0mar12
Copy link
Author

k0mar12 commented Jan 4, 2023

And this warn i getting time to time.
Usually, i don't even get event Client Welcomed

@paralin
Copy link
Owner

paralin commented Jan 20, 2023

You have to call SetPlaying(true), wait a moment, then send SendHello until you get a session and/or a "in session queue" message.

Ignore the unable to handle welcome cache messages... They are just warnings.

@paralin paralin closed this as completed Jan 20, 2023
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

2 participants