Sorunome / mx-puppet-skype

16 stars 4 forks source link

'got new skype message. couldn't generate params' error and can't receive messages #4

Closed ericmigi closed 4 years ago

ericmigi commented 4 years ago
Apr-23 00:19:59.266 [SkypePuppet:skype] warn: Couldn't generate params
Apr-23 00:20:00.853 [SkypePuppet:skype] info: Got new skype message
Apr-23 00:20:00.859 [SkypePuppet:skype] warn: Couldn't generate params
Apr-23 00:20:45.188 [SkypePuppet:skype] info: Got new skype presence event
Apr-23 00:20:45.196 [SkypePuppet:skype] warn: Couldn't generate params
Apr-23 00:22:03.388 [SkypePuppet:client] verbose: Getting contacts diff....
Apr-23 00:22:03.537 [PuppetBridge] verbose: Got request to update a user
Apr-23 00:22:03.539 [UserSync] info: Fetching client for -1
Apr-23 00:22:03.559 [UserSync] info: User doesn't exist yet, creating entry...
Apr-23 00:22:03.559 [NamespaceHandler] info: Fetching new user override data...
Apr-23 00:22:03.560 [SkypePuppet:skype] info: Received create request for user update puppetId=1 userId=8:allan_evans
Apr-23 00:22:03.562 [bot-sdk-MatrixLiteClient] info: (REQ-1) POST https://asmux.nova.chat/_matrix/client/r0/register
Apr-23 00:22:03.871 [Util] info: Processing profile update...
Apr-23 00:22:03.872 [Util] verbose: null --> {
  puppetId: 1,
  userId: '8:allan_s',
  name: 'allan_s',
  avatarUrl: 'https://avatar.skype.com/v1/avatars/allan_evans?auth_key=-'
}
Apr-23 00:22:03.874 [Util] verbose: No old profile exists, creating a new one
Apr-23 00:22:03.875 [Util] verbose: Uploading avatar...
Apr-23 00:22:04.269 [bot-sdk-MatrixLiteClient] info: (REQ-2) POST https://asmux.nova.chat/_matrix/media/r0/upload
Apr-23 00:22:06.649 [UserSync] verbose: Updating name
Apr-23 00:22:06.653 [UserSync] verbose: Updating avatar
Apr-23 00:22:06.654 [UserSync] verbose: Storing update to DB
Apr-23 00:22:06.655 [bot-sdk-MatrixLiteClient] info: (REQ-3) PUT https://asmux.nova.chat/_matrix/client/r0/profile/%40_eric_skype__8%3D3aallan__s%3Anova.chat/displayname
Apr-23 00:22:06.656 [bot-sdk-MatrixLiteClient] info: (REQ-4) PUT https://asmux.nova.chat/_matrix/client/r0/profile/%40_eric_skype__8%3D3aallan__s%3Anova.chat/avatar_url
Apr-23 00:22:06.664 [UserSync] verbose: Returning client
Apr-23 00:27:03.399 [SkypePuppet:client] verbose: Getting contacts diff....
Apr-23 00:32:03.410 [SkypePuppet:client] verbose: Getting contacts diff....
ericmigi commented 4 years ago

it seems like it's just chats with this specific user...if I chat with someone else it works.

ericmigi commented 4 years ago

Ahh! I think I know waht is happening! I think it's because I initially wasn't 'friends' with the user. then after I accepted the invitation, the bridge seems to be discarding new message from him cc @Sorunome

Apr-25 06:20:49.462 [SkypePuppet:skype] info: Got new skype typing event
Apr-25 06:20:50.579 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:20:51.411 [SkypePuppet:skype] info: Got new skype message
Apr-25 06:20:51.414 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:20:52.273 [SkypePuppet:skype] info: Got new skype presence event
Apr-25 06:20:52.274 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:18.007 [SkypePuppet:skype] info: Got new skype typing event
Apr-25 06:21:18.010 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:18.828 [SkypePuppet:skype] info: Got new skype message
Apr-25 06:21:18.833 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:19.654 [SkypePuppet:skype] info: Got new skype presence event
Apr-25 06:21:19.656 [SkypePuppet:skype] info: Got new skype message
Apr-25 06:21:19.658 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:19.803 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:21.302 [SkypePuppet:skype] info: Got new skype presence event
Apr-25 06:21:21.304 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:21:35.876 [SkypePuppet:skype] info: Got new skype message
Apr-25 06:21:35.878 [SkypePuppet:skype] warn: Couldn't generate params
Apr-25 06:23:23.207 [SkypePuppet:skype] info: Got new skype message
Apr-25 06:23:23.210 [SkypePuppet:skype] warn: Couldn't generate params
Sorunome commented 4 years ago

Should be fixed in https://github.com/Sorunome/mx-puppet-skype/commit/d2019b0ccd0b1d850444f8c483bac2077f7f53cf hopefully

ericmigi commented 4 years ago

thanks that works perfectly!