vets-api icon indicating copy to clipboard operation
vets-api copied to clipboard

Error when referencing an unknown error_type: `body` is undefined

Open AdamKing0126 opened this issue 1 year ago • 0 comments

Original Issue

In https://github.com/department-of-veterans-affairs/vets-api/pull/15075 I logged the response.body in an attempt to assist further debugging efforts, but unfortunately body is not defined, and is now causing its own error.

This is because EVSS::GiBillStatus::GiBillStatusResponse does not expose the body of the response that is passed in as an initialization argument.

In order to determine the cause of these errors, modify the GiBillStatusResponse to include a body argument which is linked to the response.body

AdamKing0126 avatar Jan 16 '24 22:01 AdamKing0126