Skip to main content
This reference documents common errors from the baton-sdk and connector runtime.

Configuration errors

Connector does not have account manager configured

Cause: Attempted to create an account but the connector doesn’t implement AccountManager. Solution: Either:
  • Implement the AccountManager interface for account creation
  • Don’t call account creation operations on this connector

Resource type does not have credential manager configured

Cause: Attempted credential rotation but the resource type doesn’t support it. Solution: Implement CredentialManager for that resource type, or don’t attempt rotation.

Error: old account manager interface implemented

Cause: Using deprecated v1 interface instead of v2. Solution: Update to implement AccountManagerV2:

Error: duplicate resource type found for account manager

Cause: Registered the same resource type twice with the builder. Solution: Only register each resource type once:

Provisioning errors

Error: provisioner not found for resource type

Cause: Grant/Revoke called on a resource type that doesn’t implement provisioning. Solution: Implement ResourceProvisionerV2:

Error: preferred credential creation option is not set

Cause: Account creation request missing required credential option. Solution: Include credential options in the request, or check connector capabilities first.

Error: preferred credential rotation option is not part of the supported options

Cause: Requested credential type not supported by this connector. Solution: Check GetCapabilities() for supported credential options before requesting rotation.

Pagination errors

Next page token is the same as the current page token

Cause: Your List/Entitlements/Grants method returned the same token it received, creating an infinite loop. Solution:
See Troubleshooting - Pagination Loop.

C1z file errors

C1z: invalid file

Cause: The .c1z file is corrupted or not a valid c1z format. Solution:
  • Re-run the sync to generate a fresh file
  • Check disk space and write permissions
  • Verify the file wasn’t truncated

C1z: max decoded size exceeded

Cause: The decompressed c1z file exceeds the default size limit. Solution: Set environment variable to increase limit:

C1z: window size exceeded

Cause: Decompression requires more memory than allowed. Solution: Increase decoder memory:

C1file: output file path is empty

Cause: Connector invoked without specifying output path. Solution:

C1file: sync is not active

Cause: Attempted to write data outside of an active sync operation. Solution: This is usually an SDK internal error. Ensure you’re not calling SDK methods outside the sync lifecycle.

Action errors

Error: action manager not implemented

Cause: Connector doesn’t support custom actions. Solution: Implement CustomActionManager if you need actions, or don’t call action endpoints.

Action %s not found

Cause: Requested an action that doesn’t exist. Solution: List available actions first:

Action handler timed out

Cause: Custom action took too long to complete. Solution: Optimize the action implementation or increase timeout (if configurable).

Validation errors

Error: validate provider not implemented

Cause: Connector doesn’t implement configuration validation. Solution: Implement ValidateProvider for config validation:

Validate failed: %w

Cause: Connector validation failed (wrapped error contains details). Solution: Check the inner error message for specifics (usually credential or connectivity issues).

Input errors

Input cannot be nil

Cause: Passed nil to a builder function. Solution: Ensure all required parameters are provided.

Input is not a connectorserver, connectorbuilder, or connectorbuilderv2

Cause: Passed wrong type to connector initialization. Solution: Use the correct builder type:

S3/storage errors

Attempting to save to s3 without a valid client

Cause: S3 upload configured but client not initialized. Solution: Ensure AWS credentials and S3 configuration are provided.

Attempting to save to s3 without a valid file path specified

Cause: S3 destination path not configured. Solution: Set the S3 bucket and key path in configuration.

Accesskeyid and secretaccesskey must be specified

Cause: AWS credentials incomplete. Solution:

Encryption errors

Age: failed to encrypt: %w

Cause: Encryption failed (age library error). Solution: Check the wrapped error for details. Common causes:
  • Invalid recipient public key
  • Memory allocation failure

Age: failed to decrypt: %w

Cause: Decryption failed. Solution: Verify you’re using the correct private key that matches the encryption.

Quick reference

Environment variables

Diagnostic commands