You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
errors.report fails when reporting some objects or strings.
const{ErrorReporting}=require('@google-cloud/error-reporting');consterrors=newErrorReporting();errors.report({error: "something broke"});// errors.report('{error: "something broke"}') also fails
This returns an error:
ERROR:@google-cloud/error-reporting: Encountered an error while attempting to transmit an error to the Stackdriver Error Reporting API. Error: ReportedErrorEvent.context must contain a location unless 'message' contain an exception or stacktrace.
errors.report fails when reporting some objects or strings.
This returns an error:
ERROR:@google-cloud/error-reporting: Encountered an error while attempting to transmit an error to the Stackdriver Error Reporting API. Error: ReportedErrorEvent.context must contain a location unless 'message' contain an exception or stacktrace.The source states that "err can be anything" so I think this should work:
https://github.com/googleapis/nodejs-error-reporting/blob/master/src/index.ts#L98
I also don't see anything that indicates that the reported error needs to be of a certain format.