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

fix: Serializing of body params correctly sequences checks before aborting #835

Conversation

KenzoBenzo
Copy link
Contributor

@KenzoBenzo KenzoBenzo commented May 9, 2024

Fixes FER-1675

Short description of the changes made

Move the check for formData into the nested relevant case. This means we don't return undefined almost no matter what now.

What was the motivation & context behind this PR?

Almost every request needing a body param in prod is currently broken on the API playground.

How has this PR been tested?

Using the API playground on:

  • octoai

@KenzoBenzo KenzoBenzo self-assigned this May 9, 2024
@KenzoBenzo KenzoBenzo requested a review from abvthecity as a code owner May 9, 2024 17:50
Copy link

linear bot commented May 9, 2024

FER-1675 API playground isn't sending a body in some instances

Definitely affecting POST requests and STREAM

Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fern-dev ✅ Ready (Inspect) Visit Preview May 9, 2024 5:50pm
3 Ignored Deployments
Name Status Preview Updated (UTC)
fern-prod ⬜️ Ignored (Inspect) May 9, 2024 5:50pm
fontawesome-cdn ⬜️ Ignored (Inspect) May 9, 2024 5:50pm
private-docs ⬜️ Ignored (Inspect) May 9, 2024 5:50pm

@abvthecity
Copy link
Contributor

Screenshot 2024-05-09 at 1 58 47 PM worked for stream as well (on octo)

@abvthecity abvthecity merged commit 094e621 into main May 9, 2024
19 checks passed
@abvthecity abvthecity deleted the makenna/fer-1675-api-playground-isnt-sending-a-body-in-some-instances branch May 9, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants