connect-sdk-go icon indicating copy to clipboard operation
connect-sdk-go copied to clipboard

Connect API - failed to GetFileWithUUID

Open amitjoseph opened this issue 3 years ago • 1 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 <REDACTED> using KID <REDACTED>, 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 avatar Feb 21 '22 07:02 amitjoseph

@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.

snarlysodboxer avatar Feb 24 '22 03:02 snarlysodboxer

Closing this since there is a workaround for it. Feel free to reopen if it persists or you think it's still a valid issue.

edif2008 avatar Dec 01 '23 15:12 edif2008