-
Notifications
You must be signed in to change notification settings - Fork 4
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
Vault sharing notification is not sent #824
Comments
@CDeltakai do |
We need a better regression testing here. |
There's no error on the remote side that shows up. |
I did a quick test on my side. and got this when trying to share the vault.
After getting @CDeltakai to trust my node I was able to share a new vault with him without error. This is designed behavior where you just outright reject notifications from vaults where you don't trust them first. However the feedback on the problem here is really bad. We need to include all the errors in the cause chain when reporting errors like this. Along with sending notifications specifically, if we reject a notification due to lack of trust, There should be a logger message for it as well. |
I'm going to address this in two parts.
|
Ok, so I've made the error logging better here and improved the related tests in the CLI. Besides the fact that why the notification failed wasn't clear. This was intended behaviour. The vaults share command itself doesn't care if the notification fails. The only reason we got any feedback that the notification failed is because background tasks, regardless if the failure is allowed or not, is logged as a warning. |
With the new changes release I'm going to consider this one done. Unless we want to consider changing the intended behaviour of vaults share and the failing notification. |
I thought it was due to no trust/permission to share. |
Example of the new log? |
I still want to make sure we're structured in that though. |
All
The stringified error part is It was due to a lack of trust to accept notifications. Sharing was unaffected. |
Hmmm, I would prefer to use json for structured messages, and a better serialisation of error messages. The |
We could use a JSON format. I structured it this way to keep it succinct and avoid bloating out the log size. Let me play around with some formats. Once we've settled on that I'll move the formatting change into js-errors. I'll create a new issue to track that. |
There are 3 things left to do for this.
|
I will be taking over this issue now. |
There could be a default |
So we want to keep that now? That's what I intended to do but after discussion we went with having whatever was serialising the error to a string would decide how to format it. |
Describe the bug
Sharing a vault to a node ID causes this log in the agent logs:
There's no notifications sent.
To Reproduce
Expected behavior
I'm able to connect and share the vault, and the remote target can clone the vault. But notifications is not sent, so this sounds like a trivial bug. It should just sent without any other problems.
Screenshots
Platform (please complete the following information)
Notify maintainers
@tegefaulkes
The text was updated successfully, but these errors were encountered: