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: Writing multiple errors after bad request #434

Closed
lukewhrit opened this issue Aug 8, 2024 · 0 comments
Closed

bug: Writing multiple errors after bad request #434

lukewhrit opened this issue Aug 8, 2024 · 0 comments
Assignees
Labels
💥 bug Something isn't working
Milestone

Comments

@lukewhrit
Copy link
Owner

Describe the bug

Currently, creating a bad document will cause two errors to be reported in an invalid JSON format.

{"error":"Content: the length must be between 2 and 400000.","payload":{}}
{"error":"sql: no rows in result set","payload":{}}

To Reproduce

Steps to reproduce the behavior (What were you doing at the time?):

  1. Go to a https://spaceb.in
  2. Create a document with only one character to trigger an error
  3. Done

Expected behavior

We should only include the first error and end the response before the second one is written.

@lukewhrit lukewhrit added the 💥 bug Something isn't working label Aug 8, 2024
@lukewhrit lukewhrit added this to the v1.0.3 milestone Aug 8, 2024
@lukewhrit lukewhrit self-assigned this Aug 8, 2024
lukewhrit added a commit that referenced this issue Aug 8, 2024
@github-project-automation github-project-automation bot moved this from ✈️ In Progress to 💎 Done in Spacebin Aug 8, 2024
@lukewhrit lukewhrit reopened this Aug 31, 2024
@lukewhrit lukewhrit moved this from 💎 Done to 🐛 Bugs / QOL in Spacebin Aug 31, 2024
@github-project-automation github-project-automation bot moved this from ✈️ In Progress to 💎 Done in Spacebin Aug 31, 2024
lukewhrit added a commit that referenced this issue Sep 5, 2024
Documentation updates, fix for #434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 bug Something isn't working
Projects
Status: 💎 Done
Development

No branches or pull requests

1 participant