Open omerlh opened 3 years ago
Hi @omerlh,
Could you please confirm that the supplied Occurrence is a valid protobuf?
Thanks, Aysylu
How can I do that? It was very hard to find out how to call the server, had to hack around with the Swagger / Postman collection
For the instructions on how to call the server, I'm assuming you saw these ones already?
For the format, it looks like it's not well-formed:
"resource": {
"name": "docker image",
"uri": "https://gcr.io/scanning-customer/dockerimage@sha256:244fd47e07d1004f0aed9c156aa09083c82bf8944eceb67c946ff7430510a77b",
"contentHash": {
"type": "SHA256",
"value": "244fd47e07d1004f0aed9c156aa09083c82bf8944eceb67c946ff7430510a77b"
}
},
should be
"name": "docker image",
"resource": {
"uri": "https://gcr.io/scanning-customer/dockerimage@sha256:244fd47e07d1004f0aed9c156aa09083c82bf8944eceb67c946ff7430510a77b",
},
Also, the use of contentHash
and name
inside Resource
is discouraged per spec. There may be a few other issues in the current current being passed, but these immediately jumped out.
Hope this helps!
Ohh thanks - this indeed should help. I hope to find some time to test it out.
Expected Behavior
Occurrence created as expected
Actual Behavior
Getting the following error:
Steps to Reproduce the Problem
I used the Swagger to find the relevant endpoint, and created it based on existing in toto link. Prior to this APi call, I successfully created a matching note with the same name and kinda, and created a project.
Additional info
The server is running using the following docker command: