responsible-ai-collaborative / aiid

The AI Incident Database seeks to identify, define, and catalog artificial intelligence incidents.
https://incidentdatabase.ai
Other
167 stars 35 forks source link

Email Notifications Post-build plugin failing: `Response not successful: Received status code 400` #2944

Closed kepae closed 1 month ago

kepae commented 1 month ago

We are successfully populating the queue of incident notifications to send again, but now the plugin that runs after the site build is failing with a 400 error. As @pdcp1 pointed out, this may be related to an issue with one or both env variables: GATSBY_REALM_APP_ID , REALM_GRAPHQL_API_KEY

However, these variables are both set and accessible to actions in the workflow in the "Build using Netlify" step: https://github.com/responsible-ai-collaborative/aiid/blob/8a8979e45a21d178cc4d696783975c18aa99ae81/.github/workflows/deploy.yml#L94

Debugging continues...

pdcp1 commented 1 month ago

Update:

Today's Production release processed 6 notifications.

All 6 notifications processed

I received 3 emails for New Incidents:

image
pdcp1 commented 1 month ago

I will keep this issue open until we verify notifications continue to work in the next production releases.

pdcp1 commented 1 month ago

From Sendgrid:

image
pdcp1 commented 1 month ago

Update: Today's deploy https://github.com/responsible-ai-collaborative/aiid/actions/runs/9841302624/job/27169799868#step:9:426

It does not have any notifications to process. Let's continue monitoring until we have something to process and verify if the email notifications still work.

pdcp1 commented 1 month ago

Update: Today's deploy https://github.com/responsible-ai-collaborative/aiid/actions/runs/9996425044/job/27632128923#step:9:428

26 notifications were processed image

image

Closing the ticket since this is the second consecutive time it has worked as expected.