Closed MajinFro closed 8 years ago
from consumer tech debt card... Ruby-cb-api: make error for "missing response field" better.
Example: https://rpm.newrelic.com/accounts/780558/applications/4991347/traced_errors/f2acfc-6ffc59d7-d8a1-11e5-9062-f8bc12425498?original_error_id=8760ae-b2f65b82-d8a1-11e5-9062-f8bc12425498 It just reads "Results" as the error message. When you look at the stack trace you can see it's a required field that's missing. https://github.com/careerbuilder/ruby-cb-api/blob/master/lib/cb/responses/api_response.rb#L52 It would be really nice if it would give info about what API was called and what we were looking for. But at least say something more than just the name of the field.
Example: https://rpm.newrelic.com/accounts/780558/applications/4991347/traced_errors/f2acfc-6ffc59d7-d8a1-11e5-9062-f8bc12425498?original_error_id=8760ae-b2f65b82-d8a1-11e5-9062-f8bc12425498
It just reads "Results" as the error message. When you look at the stack trace you can see it's a required field that's missing.
https://github.com/careerbuilder/ruby-cb-api/blob/master/lib/cb/responses/api_response.rb#L52
It would be really nice if it would give info about what API was called and what we were looking for. But at least say something more than just the name of the field.
Code Climate is bust again :(
closing because i goofed this up by not working on updated code. going to get everything fixed and then reopen.
from consumer tech debt card... Ruby-cb-api: make error for "missing response field" better.