TL;DR
For "error with GetFileContent: need at least version 1.3.0 of Connect for this function,": upgrade your Connect server images to 1.5.5 or later. Set the image tag to 1.5.5 (or newer) for connect-api and connect-sync.
error with GetFileContent: need at least version 1.3.0 of Connect for this function,
detected version 1.2.0 (or earlier). Please update your Connect server
Steps
- Calling
GetFileContentthrough connect-sdk-go against Connect server 1.5.4 errors with:
error with GetFileContent: need at least version 1.3.0 of Connect for this function,
detected version 1.2.0 (or earlier). Please update your Connect server
The call worked fine against 1.5.0. The version in the error is wrong: the server really is 1.5.4.
This is a bug in the Connect server itself, in how the File object's
content_pathis handled in 1.5.4. The SDK asks the server for the file content, the server's version detection misfires, and you get the bogus "update your Connect server" message. Nothing is wrong with your SDK version or your vault items.Upgrade your Connect server images to 1.5.5 or later. In the connect-helm-charts setup that means bumping both
connect-apiandconnect-sync:Check what you are running now:
kubectl get deploy -l app=connect -o jsonpathand look at the image tags, or check your helm values.Set the image tag to
1.5.5(or newer) forconnect-apiandconnect-sync.helm upgradeand wait for the rollout to finish.Retry the
GetFileContentcall. It should work immediately.Report the exact version pair (SDK version and both server image versions), since the 1.5.5 fix was specifically for this 1.5.4 regression. A different pair failing the same way would be a new bug, not this one.
When to use
You are seeing this: Calling GetFileContent through connect-sdk-go against Connect server 1.5.4 errors with: `` error with GetFileContent: need at least version 1.3.0 of Connect for this function, detected version 1.2.0 (or earlier). Use this skill when you run into "1Password Connect: GetFileContent fails with "need at least version 1.3.0" on Connect 1.5.4".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: server 1.5.4, 1.3.0, 1.2.0, against 1.5.0, 1.5.5. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Source: Vectle. Version: skv_cjm2OZXh2sQNO4CLch7f5Q. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.