-
Notifications
You must be signed in to change notification settings - Fork 43
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
Plugin error handling #220
Comments
|
Hi Ivan @zosocanuck , notation-go package has been refactored. Looks like you were using Please try:
then replace |
@JeyJeyGao Yes I'm using the latest RC.1 and turns out I was unexpectedly sending log information via os.Stdout, which was causing the issue, and hence would explain the error about the plugin not being compliant. |
Hi,
I'm testing a plugin prototype (based on notation-azure-kv) that will implement signature generator however when it comes to error handling I seem to be only obtaining the following generic error:
Error: describe-key command failed: xyz-plugin: ERROR: failed to decode json response: plugin not compliant
In cmd/xyz-plugin main.go I have:
Within the actual runDescribeKey I'm returning a plugin.RequestError per the spec:
Seems like the plugin handler in notation-go is not correctly handling the returned error?
The text was updated successfully, but these errors were encountered: