0.18.5 is breaking @google-cloud/profiler.
nolanmar511 opened this issue · comments
This is the section of code which is now failing:
this.request(
options,
(err: Error, body: object, response: http.ServerResponse) => {
try {
const prof = responseToProfileOrError(err, body, response);
this.logger.debug(
`Successfully created profile ${prof.profileType}.`);
resolve(prof);
} catch (err) {
reject(err);
}
});
});
The body
now has the format:
{
statusCode: 200,
body: {
"name":"projects/projectId/XXXXX",
"profileType":"WALL"
.....
}
.........
We expect to see just what's in the body
portion of that.