simple-salesforce-deploy-requires-sandbox-bool-and-bytesio
SfdcMetadataApi.deploy() signature is deploy(zipfile, sandbox, **kwargs) where sandbox is a required 2nd positional boolean arg. The zipfile arg must be a file path or IO[bytes] object — passing a base64-encoded string causes silent failure. Fix: decode base64 to bytes and wrap in io.BytesIO before calling deploy(), and derive is_sandbox from api_client.org_configs[alias][‘type’].
Related
- simple-salesforce-deploy-signature-sandbox-second-positional
- simple-salesforce-mdapi-deploy-expects-path-or-bytesio-not-b
- simple-salesforce-deploy-sandbox-positional-arg-required
- salesforce
- simple-salesforce-deploy-expects-fileobj-not-base64
- salesforce-mcp-has-3-orgs-production-fullcopy-marketing-clou
- simple-salesforce-deploy-requires-sandbox-bool-and-bytes-io
- simple-salesforce-mdapi-deploy-expects-file-path-or-io-not-b
- simple-salesforce-deploy-accepts-io-bytes-not-base64