sailesh
1
Hii Everyone
I’m facing a few challenges while migrating from apollo server v3 to v4.
Specifically in RESTDataSource.
Even when following the same syntax, in one of subclasses of RESTDataSource, I’m able to get correct response.
In another subclass which follows exactly the same structure I’m getting an error in didEncounterError hook
{
message: "An unexpected error occured",
requestid: "some_random_string_of_numbers"
}
While migrating I considered the new way of passing body and bearer token in the request.
If I’m using axios instead of this.post, I’m able to get the response from the same request body and auth token.
When debugged in apollo/restdatasource package I found the error is originating from this.parseBody function.
Has anyone faced a similar issue while migrating?
I’ve initiated a github issue thread for the same as well.
I would appreciate you support and help