Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Duplicated Issue Card #48

Closed
huan opened this issue Mar 5, 2020 · 1 comment
Closed

Duplicated Issue Card #48

huan opened this issue Mar 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@huan
Copy link
Collaborator

huan commented Mar 5, 2020

Currently, if there's one issue event, then OSS bot will send two message card to the WeChat.

I can confirm the GitHub app only send one webhook call.

And the following is the log that Heroku shows that we get two post requests.

=info method=POST path="/" host=oss-bot.kaiyuanshe.cn request_id=2a0f89c5-0147-46e6-ac01-696cb6a80b45 fwd="192.30.252.91" dyno=web.1 connect=1ms service=49ms status=200 bytes=172 protocol=https
=info method=POST path="/" host=oss-bot.kaiyuanshe.cn request_id=deb4e32a-fdf4-428c-99d6-ac50df793810 fwd="192.30.252.98" dyno=web.1 connect=1ms service=77ms status=200 bytes=172 protocol=http
08:14:18 VERB issue-handlers manageIssue(kaiyuanshe/oss-bot, {"description":"test","thumbnailUrl":"https://avatars3.githubusercontent.com/u/1361891?v=4","title":"kaiyuanshe/oss-bot #43 Test Issue to WeChat","url":"https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258"})
08:14:18 VERB getWechaty getWechaty()
08:14:18 VERB getWechaty getWechaty()
08:14:18 VERB UrlLink constructor()
08:14:18 VERB issue-handlers manageIssue() sending to room Room<OSS-Bot Project Group>
08:14:18 VERB Chatops queue(,"issue card")
08:14:18 VERB Room say(UrlLink<https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258>, )
08:14:18 VERB PuppetPadplus messageSendUrl(17591588552@chatroom)
08:14:18 VERB Puppet selfId()
08:14:18 VERB PadplusMessage sendUrlLink()
08:14:18 VERB PadplusMessage sendMessage()
08:14:18.275Z  INFO http: POST / 200 - 72.85 ms (id=deb4e32a-fdf4-428c-99d6-ac50df793810)
08:14:18 VERB issue-handlers manageIssue(kaiyuanshe/oss-bot, {"description":"test","thumbnailUrl":"https://avatars3.githubusercontent.com/u/1361891?v=4","title":"kaiyuanshe/oss-bot #43 Test Issue to WeChat","url":"https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258"})
08:14:18 VERB getWechaty getWechaty()
08:14:18 VERB getWechaty getWechaty()
08:14:18 VERB UrlLink constructor()
08:14:18 VERB issue-handlers manageIssue() sending to room Room<OSS-Bot Project Group>
08:14:18 VERB Chatops queue(,"issue card")
08:14:18.283Z  INFO http: POST / 200 - 2.66 ms (id=2a0f89c5-0147-46e6-ac01-696cb6a80b45)
08:14:18 VERB Puppet selfId()
08:14:18 VERB Message static load(568698540971225026)
08:14:18 VERB Message constructor(568698540971225026) for class Message
08:14:18 VERB Message ready()
08:14:18 VERB Puppet messagePayload(568698540971225026)
08:14:18 VERB PuppetPadplus messageRawPayload(568698540971225026)
08:14:18 VERB PuppetPadplus messageRawPayloadParser()
08:14:18 VERB Room ready()
08:14:18 VERB Chatops queue(,"issue card") done.
08:14:18 VERB issue-handlers manageIssue() sending to room Room<OSS-Bot Pilot Group>
08:14:18 VERB Chatops queue(,"issue card")
08:14:23 VERB Room say(UrlLink<https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258>, )
08:14:23 VERB PuppetPadplus messageSendUrl(17591588552@chatroom)
08:14:23 VERB Puppet selfId()
08:14:23 VERB PadplusMessage sendUrlLink()
08:14:23 VERB PadplusMessage sendMessage()
08:14:23 VERB Puppet selfId()
08:14:23 VERB Message static load(8582129718521061911)
08:14:23 VERB Message constructor(8582129718521061911) for class Message
08:14:23 VERB Message ready()
08:14:23 VERB Puppet messagePayload(8582129718521061911)
08:14:23 VERB PuppetPadplus messageRawPayload(8582129718521061911)
08:14:23 VERB PuppetPadplus messageRawPayloadParser()
08:14:23 VERB Room ready()
08:14:23 VERB Chatops queue(,"issue card") done.
08:14:23 VERB issue-handlers manageIssue() sending to room Room<OSS-Bot Pilot Group>
08:14:23 VERB Chatops queue(,"issue card")
08:14:28 VERB Room say(UrlLink<https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258>, )
08:14:28 VERB PuppetPadplus messageSendUrl(17384390178@chatroom)
08:14:28 VERB Puppet selfId()
08:14:28 VERB PadplusMessage sendUrlLink()
08:14:28 VERB PadplusMessage sendMessage()
08:14:28 VERB Puppet selfId()
08:14:28 VERB Message static load(2738989012187233540)
08:14:28 VERB Message constructor(2738989012187233540) for class Message
08:14:28 VERB Message ready()
08:14:28 VERB Puppet messagePayload(2738989012187233540)
08:14:28 VERB PuppetPadplus messageRawPayload(2738989012187233540)
08:14:28 VERB PuppetPadplus messageRawPayloadParser()
08:14:28 VERB Room ready()
08:14:28 VERB Chatops queue(,"issue card") done.
08:14:28 VERB issue-handler manageIssue(kaiyuanshe/oss-bot, undefined) done
08:14:33 VERB Room say(UrlLink<https://github.com/kaiyuanshe/oss-bot/issues/43#issuecomment-595088258>, )
08:14:33 VERB PuppetPadplus messageSendUrl(17384390178@chatroom)
08:14:33 VERB Puppet selfId()
08:14:33 VERB PadplusMessage sendUrlLink()
08:14:33 VERB PadplusMessage sendMessage()
08:14:33 VERB Puppet selfId()
08:14:33 VERB Message static load(7317673297855883510)
08:14:33 VERB Message constructor(7317673297855883510) for class Message
08:14:33 VERB Message ready()
08:14:33 VERB Puppet messagePayload(7317673297855883510)
08:14:33 VERB PuppetPadplus messageRawPayload(7317673297855883510)
08:14:33 VERB PuppetPadplus messageRawPayloadParser()
08:14:33 VERB Room ready()
08:14:33 VERB Chatops queue(,"issue card") done.
08:14:33 VERB issue-handler manageIssue(kaiyuanshe/oss-bot, undefined) done
@huan huan added the bug Something isn't working label Mar 5, 2020
@huan
Copy link
Collaborator Author

huan commented Mar 6, 2020

Finally, it turns out that we have installed the GitHub App of OssChat, and at the same time, we have another webhook in our repository.

That's the reason why we get two message cards for one issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant