community-plugins icon indicating copy to clipboard operation
community-plugins copied to clipboard

🐛 feedback: Router error with guest user

Open drodil opened this issue 1 year ago • 0 comments

Plugin Name

feedback

📜 Description

The router throws an exception when using the feedback plugin with a guest user or user without an email address

👍 Expected behavior

It should not throw an error

👎 Actual Behavior with Screenshots

[0] 2024-10-09T05:29:58.426Z backstage error Unhandled rejection Cannot read properties of undefined (reading 'spec') type=unhandledRejection stack=TypeError: Cannot read properties of undefined (reading 'spec')
[0]     at <anonymous> (/node_modules/@backstage-community/plugin-feedback-backend/src/service/router.ts:152:11)
[0]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

👟 Reproduction steps

  1. Add feedback plugin
  2. Login as guest
  3. Send a feedback

📃 Provide the context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

drodil avatar Oct 09 '24 05:10 drodil