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

Better HTTP error messages #133

Merged
merged 13 commits into from
Dec 19, 2017
Merged

Conversation

tiffon
Copy link
Member

@tiffon tiffon commented Dec 14, 2017

Fixes #127.

Fixes jaegertracing/jaeger#418.

Partially addresses jaegertracing/jaeger#401.

Improved HTTP error messages. No longer always showing the same often incorrect error message.

"Response body" is the first 1021 characters (with "..." appended when truncated).

screen shot 2017-12-14 at 11 48 36 am
screen shot 2017-12-14 at 11 48 43 am

@codecov
Copy link

codecov bot commented Dec 14, 2017

Codecov Report

Merging #133 into master will increase coverage by 0.19%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #133      +/-   ##
==========================================
+ Coverage   92.16%   92.35%   +0.19%     
==========================================
  Files          81       82       +1     
  Lines        1799     1832      +33     
  Branches      348      356       +8     
==========================================
+ Hits         1658     1692      +34     
+ Misses        129      128       -1     
  Partials       12       12
Impacted Files Coverage Δ
src/components/App/NotFound.js 0% <ø> (ø) ⬆️
src/reducers/trace.js 78.57% <0%> (ø) ⬆️
src/api/jaeger.js 97.29% <100%> (+9.06%) ⬆️
src/components/TracePage/index.js 98.86% <100%> (ø) ⬆️
src/components/common/ErrorMessage.js 100% <100%> (ø)
src/components/SearchTracePage/index.js 88.09% <66.66%> (-3.8%) ⬇️
src/reducers/services.js 84.61% <66.66%> (ø) ⬆️
...neViewer/TimelineHeaderRow/TimelineViewingLayer.js 90.74% <0%> (+3.7%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f6a804...0ab5128. Read the comment docs.

@saminzadeh
Copy link
Member

Looks like there are some changes that leaked into here that are just prettier formatted changes. I think its better to have this come in a new diff so the changes are only related to the Error formatting components

@tiffon
Copy link
Member Author

tiffon commented Dec 19, 2017

@saminzadeh Done. I reverted and then isolated the changes.

@tiffon tiffon merged commit b6c4d37 into master Dec 19, 2017
@yurishkuro yurishkuro deleted the issue-127-fix-http-error-messages-simple branch January 29, 2020 15:11
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
* Better error messages on failed HTTP requests

Signed-off-by: Joe Farro <[email protected]>

* Prettier reformatting

Signed-off-by: Joe Farro <[email protected]>

* Better error formatting

Signed-off-by: Joe Farro <[email protected]>

* Update README to refer to codecov.io

Signed-off-by: Joe Farro <[email protected]>

* Unit tests for better HTTP error messages

Signed-off-by: Joe Farro <[email protected]>

* Better error messages on failed HTTP requests

Signed-off-by: Joe Farro <[email protected]>

* Better error formatting

Signed-off-by: Joe Farro <[email protected]>

* Update README to refer to codecov.io

Signed-off-by: Joe Farro <[email protected]>

* Unit tests for better HTTP error messages

Signed-off-by: Joe Farro <[email protected]>

* Revert to master

Signed-off-by: Joe Farro <[email protected]>

Signed-off-by: vvvprabhakar <[email protected]>
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