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
We attach Symbol() type attributes to our known error conditions in our Express application. When Raygun tries to serialize these attributes the following error is raised:
TypeError: Cannot convert a Symbol value to a string
at toHumanString (/Users/myusername/Projects/myProjectName/node_modules/object-to-human-string/lib/index.js:29:63)
at RaygunMessageBuilder.setErrorDetails (/Users/myusername/Projects/myProjectName/node_modules/raygun/lib/raygun.messageBuilder.js:54:15)
at Raygun.raygun.send (/Users/myusername/Projects/myProjectName/node_modules/raygun/lib/raygun.js:98:14)
at Raygun.raygun.expressHandler (/Users/myusername/Projects/myProjectName/node_modules/raygun/lib/raygun.js:144:16)
at WebFrameworkShim.applySegment (/Users/myusername/Projects/myProjectName/node_modules/newrelic/lib/shim/shim.js:1332:17)
at _applyRecorderSegment (/Users/myusername/Projects/myProjectName/node_modules/newrelic/lib/shim/shim.js:949:20)
at _doRecord (/Users/myusername/Projects/myProjectName/node_modules/newrelic/lib/shim/shim.js:928:17)
at /Users/myusername/Projects/myProjectName/node_modules/newrelic/lib/shim/shim.js:913:24
at Layer.handle_error (/Users/myusername/Projects/myProjectName/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/Users/myusername/Projects/myProjectName/node_modules/express/lib/router/index.js:315:13)
It appears that object-to-human-string tries to concatenate strings using the + operator, which specifically throws the above type error. It seems to me that attaching Symbol() metadata to error objects should not cause an error to be thrown.
Thanks for a great tool!
The text was updated successfully, but these errors were encountered:
We will see what we can do to actually fix this and get back to you. But for now, a workaround might be to set useHumanStringForObject to false in the options object passed to init.
We attach
Symbol()
type attributes to our known error conditions in our Express application. When Raygun tries to serialize these attributes the following error is raised:It appears that
object-to-human-string
tries to concatenate strings using the+
operator, which specifically throws the above type error. It seems to me that attachingSymbol()
metadata to error objects should not cause an error to be thrown.Thanks for a great tool!
The text was updated successfully, but these errors were encountered: