Closed asadakbar closed 5 years ago
This can be closed if its not an error that will be fixed.
Sorry, but we don't support raven-js
anymore. It'll receive security patches only.
Got it. The post can at least live on as documentation for anyone that hits the same issue I did.
Got this error when using the raven-node package. Turns out that Raven.captureMessage and Raven.captureException don't like it when the second or third arguments are empty objects. The second argument is used to identify the user context and the third is any extra pieces of info you want to pass to sentry.
I was occasionally sending empty objects when I didn't have the any relevant info but these functions were complaining. So now I pass them as arguments conditionally by array spreading.
I didnt find any documentation on this when trying to figure this out myself so adding it here for anyone else who hits it. Don't know if its an actual bug that needs fixing though.