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
SendReplyJob failures #432
Comments
Also related (might need to be a separate issue), the |
The exception thrown by |
(Pulled into current sprint as it impacts other ongoing work.) |
(current working theory on this is that the servers used for testing do not have freedomofpress/securedrop#4436 applied) |
Confirmed. The reason source.fingerprint was returning None on Qubes was because I was testing against staging servers that were running 0.13.0 instead of 0.13.1, which started exposing the source fingerprint (see link @redshiftzero provided above). I'm going to keep this issue open until we merge a fix for the ValueError for when we have legit exceptions during a |
It looks like the issue here is that we're emitting exceptions that are useless to the rest of the UI because it doesn't know which UUID these failures correspond to. While we could keep the exception emission (e.g. this might actually be useful to preserve for a future where we want the UI corresponding to an individual UUID element to update based on the exception that was updated), the failure slot needs to at least be getting the UUID of the item the job corresponds to. We need to make this change in the base ApiJob to emit the UUID. |
Per discussion with @redshiftzero: We need to implement a solution that will allow us to emit |
agreed! :) right now we're just logging from the ReplyWidget, but after discussing how we eventually want to do more than log, it makes sense to keep this code in place and instead change the ApiJob interface |
Description
When sending a reply fails, the follow error occurs:
Somewhere we missed this in our testing. When an exception occurs,
SendReplyJob
emits a signal carry with it the exception that occurred. This signal is handled byController.on_reply_failure
which expects a uuid string.The text was updated successfully, but these errors were encountered: