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

[BUG]: Preparsed payloads are not handled correctly, here Vercel #961

Open
1 task done
Uzlopak opened this issue Jan 31, 2024 · 4 comments
Open
1 task done

[BUG]: Preparsed payloads are not handled correctly, here Vercel #961

Uzlopak opened this issue Jan 31, 2024 · 4 comments
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs

Comments

@Uzlopak
Copy link
Contributor

Uzlopak commented Jan 31, 2024

What happened?

probot/probot#1955 (comment)

The issue arises from the fact, that vercel preparses the body. So verify can not verify the body, as it is not a string.

You can get it to work for now, by setting the NODEJS_HELPERS environment variable to 0 in vercel.

Versions

current

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Uzlopak Uzlopak added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented, or is being fixed labels Jan 31, 2024
Copy link
Contributor

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@wolfy1339 wolfy1339 added Type: Support Any questions, information, or general needs around the SDK or GitHub APIs and removed Type: Bug Something isn't working as documented, or is being fixed Status: Triage This is being looked at and prioritized labels Feb 2, 2024
@wolfy1339
Copy link
Member

It could be nice to document this, other platforms probably have similar issues

@gr2m
Copy link
Contributor

gr2m commented Feb 10, 2024

follow up to probot/probot#1973 (comment). I would throw a helpful error if anything but a string is passed to the verify method. We should probably do that in https://github.com/octokit/webhooks-methods.js. It seems right now both verify and sign silently accept objects although the types define string for the payload

@wolfy1339
Copy link
Member

An error has been added to @octokit/webhooks-methods whenever object payloads are passed.
Is there anything else actionable in this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs
Projects
Status: 🔥 Backlog
3 participants