Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving email when a request is submitted #353

Open
1 of 3 tasks
ikethecoder opened this issue Mar 23, 2022 · 2 comments
Open
1 of 3 tasks

Not receiving email when a request is submitted #353

ikethecoder opened this issue Mar 23, 2022 · 2 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ikethecoder
Copy link
Member

API Services Portal Issue

User Story

As an Access Manager,

I want to be notified when there is a new access request.

so that I can approve access in a timely manner.

Test Case

ENV

  • DEV
  • TEST
  • PROD

TESTCASE

  • As a Developer, I requested access to an API

EXPECTED

  • As an Access Manager of the API, I was expecting an email notifying me

ACTUAL

  • I did not receive the email

ERROR

Notes

@ikethecoder ikethecoder added the bug Something isn't working label Mar 23, 2022
@ikethecoder
Copy link
Member Author

ikethecoder commented Mar 23, 2022

Logging:

verbose: [notification.service] Notification triggered
verbose: [notification.service] Notification triggered
verbose: [notification.service] Notification triggered
verbose: [notification.service] Notification triggered
debug: [keystone.access-req] Mutation [markAccessRequestAsNotIssued] result {"data":{"updateAccessRequest":{"id":"267"}}}
debug: [keystone.activity] [recordActivity] userid=272 name=update AccessRequest[267]
debug: [keystone.activity] [recordActivity] result {}
[ERROR] Sending notification failed!Error: No recipients defined
[SUCCESS] Notification sent to [email protected]
[SUCCESS] Notification sent to [email protected]
[SUCCESS] Notification sent to [email protected]

Different things to look at:

  • Make sure logging is with this.logger rather than console.log
  • "Notification triggered" missing user details logged
  • Error should provide some additional details, like the user that did not have recipient information
  • There are some users that have no email - need to investigate whether the JWT Claim mapping is setup properly

There is a related issue where the requesters are getting notified even when the provisioning fails:

  • Notifications are sent even when there is a failure to enable the client

@mwendowsky
Copy link

may be resolved by #452 - collect email for notifications

@ikethecoder ikethecoder added the wontfix This will not be worked on label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants