Connect API - failed to GetFileWithUUID
amitjoseph opened this issue · 2 comments
Your environment
SDK Version: v1.2.0
Connect Server Version: 1.5.0
OS: Ubuntu 20.04.2 LTS
Go Version: go1.17.2 linux/amd64
What happened?
I was trying to download all the documents of a particular vault using the sdk, I noticed that a few files were not downloaded and when I checked the docker logs for the connect API service I saw the error
log_message":"(W) Server: (failed to GetFileWithUUID), attempting to decrypt message with KID using KID , client used wrong Key","timestamp":"2022-02-21T07:23:18.570941261Z
I'm using the method client.GetFileContent() to get the file content
I also saw a old post for the cli : https://1password.community/discussion/87002/op-get-document-fails-with-a-500-error , I think it might be the same issue, I re-uploaded the file and the issue was solved but Is there a way I can gracefully handle this in code without the need to re-upload the file?
What did you expect to happen?
To get the file content without any issue
Steps to reproduce
this only happens for a few files
@amitjoseph I have noticed this happen on Document type Items that I copied from one vault to another, using the 1Password app. - I was able to fix them by deleting them and re-uploading them, (instead of copying from another vault.) Hope that helps.