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 parse error for bool/number to not return 500 #1047

Merged
merged 4 commits into from
Sep 30, 2022
Merged

Conversation

markphelps
Copy link
Collaborator

Fixes: #1046

Now returns a 400 Bad Request from the API when a value cannot be parsed at the type expected.

Also, updates the DebugConsole UI to show the error message and correctly style the response.

Screen Shot 2022-09-30 at 9 50 38 AM
Screen Shot 2022-09-30 at 9 50 44 AM

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2022

Codecov Report

Merging #1047 (9700cc1) into main (6fef58b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1047   +/-   ##
=======================================
  Coverage   81.33%   81.33%           
=======================================
  Files          17       17           
  Lines        1822     1822           
=======================================
  Hits         1482     1482           
  Misses        265      265           
  Partials       75       75           
Impacted Files Coverage Δ
server/evaluator.go 91.69% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@markphelps markphelps merged commit 50997a3 into main Sep 30, 2022
@markphelps markphelps deleted the fix-parse-error branch September 30, 2022 14:43
markphelps added a commit that referenced this pull request Sep 30, 2022
* main:
  mod tidy
  Update changelog for release
  Fix parse error for bool/number to not return 500 (#1047)
  Bump codecov/codecov-action from 3.1.0 to 3.1.1 (#1043)
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.

Context parse error should not return 500 response
2 participants