Closed ccostino closed 1 month ago
The last occurrence of this was May 8th, so I suspect we fixed whatever it was. Going to review what deploys took place on May 8th and 9th.
Possibly fixed by this commit: https://github.com/GSA/notifications-admin/commit/83481a8b2869065c56d62940bf1f6bf3d64e08be
Okay, it was 'fixed' by this commit, but there's a story behind it.
When we moved phone numbers out of the db, all one-off sends had to be converted to jobs
The UI logic is messy here (Andrew has a ticket to separate 'create_job' from 'start_job' but right now they are still combined)
This means that we currently have to poll the backend and wait for the jobs table to be created, etc. This can create timing conditions where the notifications array is still empty but we were trying to redirect with notifications[0] ... leading to the IndexError.
When Bev removed notification_id from the redirect, it fixed the IndexError. What does the user, though, actually see if this error occurs and they are redirected to the jobs page? An empty job? Or is there sufficient time that the job populates.
This issue should be properly resolved when create_job and start_job are finally separated.
@terrazoon this is still an open issue, right? We've not separated create_job
and start_job
yet if I remember correctly.
Actually, given the other ticket in the blocked column, perhaps we need to write a new issue for the splitting apart of those two tasks instead?
Given that this will likely be resolved when https://github.com/GSA/notifications-api/issues/912 is tackled, I'm closing this in favor of tracking any remaining work in that ticket instead.
This is one of the errors we've seen captured in New Relic that we'd like to dig into and understand, if not also resolve.
This one appears to be a user permissions check failing based on one of the other messages seen with the transaction:
has_permissions user: <USER ID> service: <SERVICE ID> returning False
Error message: list index out of range Path: /services//notification/check
Exception: app.notify_client:InviteTokenError
Implementation Sketch and Acceptance Criteria
Security Considerations