Hi, tnx for reply.
I’ve read links that you provided, i rewrite my code as:
gmp.restore(entity_id=my_task_id)
Where “my_task_id” var really contains the id of task moved to trashcan.
But i have new error: Error in response. Failed to find resource 'b5beea97-ca23-48c7-a858-056fd6534424'", <Element restore_response at 0x7f8cd4c4e448>
Mistyped id?
Or the resource vanished from the trashcan in the meantime? It’s 4d since your OP, so maybe some auto cleaning kicked in?
How did you originally know it’s there? If you use the same method to know if it’s still there, is it still there?
Or maybe it’s part of something which is missing. Is the trash you try to recover partially restored?
Please always take a look at https://python-gvm.readthedocs.io/ first. python-gvm does some things differently which aren’t easy to fix in the protocol. Also the docs for python-gvm are updated more often.