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

Wechaty Gateway Server: Assertion failed #2008

Closed
inkpool opened this issue Jun 23, 2020 · 2 comments
Closed

Wechaty Gateway Server: Assertion failed #2008

inkpool opened this issue Jun 23, 2020 · 2 comments
Assignees
Labels

Comments

@inkpool
Copy link

inkpool commented Jun 23, 2020

1. Versions

  • What is your wechaty version?
    Answer: 0.4.14

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
    Answer: padplus_token (converted to donut token)
    I got one donut token from the official merchant, but it is invalid after I switched the account. No new qrcode is forwarded, and my puppet hangs. (It might be another bug, but I am now hosting my own gateway server.)

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
    Answer: wechaty-puppet-hostie 0.2.2

  • What is your node version? (run node --version)
    Answer: I am using docker image, so...

  • What os are you using
    Answer: Centos7 for gateway server, MacOS for dev

2. Describe the bug

This bug has been reported multiple times in the issues, but I did not see any reaction from the developers. I am reporting again to draw more attention and hopefully, I could get some suggestions from the official developers.

I have tried to update all the libraries to the latest version including the gateway docker image.

3. To Reproduce

#1988 (comment)
Exactly the same steps here.

4. Expected behavior

Gateway server should forward the messages to puppet.

5. Actual behavior

The puppet side cannot get any message and it keeps reporting the same error as the gateway server.

6. Full Output Logs

VERB PuppetServiceImpl messagePayload()
00:04:58 VERB Puppet messagePayload(9144104376834225040)
Error [AssertionError]: Assertion failed
at new goog.asserts.AssertionError (/wechaty/node_modules/google-protobuf/google-protobuf.js:81:876)
at Object.goog.asserts.doAssertFailure_ (/wechaty/node_modules/google-protobuf/google-protobuf.js:82:257)
at Object.goog.asserts.assert [as assert] (/wechaty/node_modules/google-protobuf/google-protobuf.js:83:83)
at jspb.BinaryEncoder.writeUnsignedVarint64 (/wechaty/node_modules/google-protobuf/google-protobuf.js:458:77)
at jspb.BinaryWriter.writeUnsignedVarint64_ (/wechaty/node_modules/google-protobuf/google-protobuf.js:480:507)
at jspb.BinaryWriter.writeUint64 (/wechaty/node_modules/google-protobuf/google-protobuf.js:485:471)
at Function.proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter (/wechaty/node_modules/@chatie/grpc/dist/generated/wechaty/puppet/message_pb.js:849:12)
at proto.wechaty.puppet.MessagePayloadResponse.serializeBinary (/wechaty/node_modules/@chatie/grpc/dist/generated/wechaty/puppet/message_pb.js:812:47)
at serialize_wechaty_puppet_MessagePayloadResponse (/wechaty/node_modules/@chatie/grpc/dist/generated/wechaty/puppet_grpc_pb.js:460:26)
at sendUnaryResponse (/wechaty/node_modules/grpc/src/server.js:98:15)
at sendUnaryData (/wechaty/node_modules/grpc/src/server.js:600:9)
at Object. (/wechaty/node_modules/wechaty-puppet-hostie/src/server/puppet-implementation.ts:529:16)
at Generator.next ()
at fulfilled (/wechaty/node_modules/wechaty-puppet-hostie/dist/src/server/puppet-implementation.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
reportErrorToServer: true,
messagePattern: 'Assertion failed',
code: 13

7. Additional context

I got this error every time when the gateway server receives one message.

[bug]

@wj-Mcat wj-Mcat self-assigned this Jun 23, 2020
@jcai
Copy link

jcai commented Jul 3, 2020

@inkpool you can try

docker run -e "WECHATY_PUPPET_PADPLUS_TOKEN=puppet_padplus_xxxxxxxxxxx" 
    docker.pkg.github.com/wechaty/scala-wechaty/ding-dong-bot:0.0.16-SNAPSHOT

Copy link

dosubot bot commented Nov 15, 2023

Hi, @inkpool! I'm Dosu, and I'm here to help the wechaty team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you reported a bug in the Wechaty Gateway Server where an assertion fails when the server receives a message. You mentioned that you have already updated all the libraries to the latest version, but the issue still persists. One user, jcai, suggested trying a specific Docker command to resolve the issue.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the wechaty repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.

Thank you for your understanding and cooperation!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 15, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants