IanMitchell / sentrydiscord.dev

Forward Sentry notifications to your Discord server
https://sentrydiscord.dev
MIT License
209 stars 22 forks source link

Logging returning "[object Object]" and "Unable to generate code snippet" #22

Closed dev-bun closed 2 years ago

dev-bun commented 2 years ago

image

IanMitchell commented 2 years ago

Do you have an example payload that I can test with?

dev-bun commented 2 years ago

Apologies - where would I find this? First time using Sentry so unsure 😃

dev-bun commented 2 years ago

After a bit of playing around,


{"action":"created","installation":{"uuid":"bdef790e-c9c0-44ba-8d50-f176db836b7d"},"data":{"issue":{"id":"3378498633","shareId":null,"shortId":"NODEJS-F","title":"TypeError: require(...) is not a function","culprit":"Object.execute(commands:eval)","permalink":null,"logger":null,"level":"error","status":"unresolved","statusDetails":{},"isPublic":false,"platform":"node","project":{"id":"6529994","name":"Node.js","slug":"nodejs","platform":"node"},"type":"error","metadata":{"value":"require(...) is not a function","type":"TypeError","filename":"/home/ubuntu/blacklister/bot/commands/eval.js","function":"Object.execute","display_title_with_tree_label":false},"numComments":0,"assignedTo":null,"isBookmarked":false,"isSubscribed":false,"subscriptionDetails":null,"hasSeen":false,"annotations":[],"isUnhandled":false,"count":"1","userCount":0,"firstSeen":"2022-06-25T23:10:47.454000Z","lastSeen":"2022-06-25T23:10:47.454000Z"}},"actor":{"type":"application","id":"sentry","name":"Sentry"}}```
IanMitchell commented 2 years ago

Thanks! Will take a look at this today or tomorrow and try to get to the bottom of it

IanMitchell commented 2 years ago

Sorry, been a really long week - still planning on getting to these soon, hopefully Sunday

IanMitchell commented 2 years ago

Object.execute(commands:eval) ಠ_ಠ why are you making eval commands on Discord you are killing me.

IanMitchell commented 2 years ago

Alright latest commit should include some more information in the embeds, thanks for providing a payload! Feel free to reopen if you continue having issues