-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bugfix/issues 50 52 #57
Bugfix/issues 50 52 #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
I think the intention for the buttons instead of links was to also include them on activityResponse in addition to activityNotification.
While you're at it, the Help activity probably needs to use activityResponse instead of .send so we can centralize error handling when we do that.
Have updated and pushed the changes. have not extensively tested it yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting an error when applying for a "require-application" bounty. This seems to happen when you are calling activityResponse with no bounty link, and it is in response to a button press. It calls interactionResponse, which creates an empty MessageActionRow, which fails. It also fails in Delete and probably elsewhere.
In Apply activity
62f3b519e9f037acd980a86f bounty applied for by chkaloon#6313
error
{
"indexMeta": true,
"meta": {
"name": "Error",
"message": "Invalid Form Body\ndata.components[0].components: This field is required",
"stack": "Error: Invalid Form Body\ndata.components[0].components: This field is required\n at Object.interactionResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144:23)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async Object.activityResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:162:13)\n at async applyBounty (/home/tescher/bountybot-/dist/app/activity/bounty/Apply.js:30:5)\n at async Object.run (/home/tescher/bountybot-/dist/app/activity/bounty/ActivityHandler.js:47:17)\n at async handler (/home/tescher/bountybot-/dist/app/activity/bounty/Handler.js:32:5)\n at async default_1.interactionHandler (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:231:13)\n at async default_1.execute (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:62:9)"
}
}
/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144
throw new RuntimeError_1.default(e);
^
RuntimeError: Invalid Form Body
data.components[0].components: This field is required
at Object.interactionResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async default_1.interactionHandler (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:255:20)
at async default_1.execute (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:62:9)
[nodemon] app crashed - waiting for file changes before starting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 work @thedarkrai07 and @tescher
👏👏
…On Mon, Aug 29, 2022 at 08:15 tescher ***@***.***> wrote:
Merged #57 <#57> into
develop.
—
Reply to this email directly, view it on GitHub
<#57 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMTKXYG4LWP3DDO3Q3DUP3V3SSUJANCNFSM54LAX5JQ>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Resolves #50 #51 #52