Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Attachment download fails for blob/preview URLs #136

Description

@j6e

Hi,

I'm currently using this tool to automate some workflows and I'm having trouble downloading attachment files. I the tools keeps erroring, and the url works otherwise in the browser...

I used claude to help me submit the following bug report.

Description

The download-attachments command fails when trying to download attachments that use the blob/preview URL format.

Environment

bc4 version: latest
Basecamp account type: Basecamp 4

Steps to Reproduce

Find a card with an image attachment
Run: bc4 card download-attachments <card-id>

Error

✗ Error

some attachments failed to download

Downloading attachment 1/1: image.png
  ✗ Failed: could not extract upload ID from URL: https://preview.3.basecamp.com/4446664/blobs/{CENSORED}/previews/full?dppx=1.100000023841858

Failed: 1 attachments

Expected Behavior

Attachment should download successfully.

Analysis

The URL parser expects /uploads/{numeric-id} format but the attachment URL uses /blobs/{uuid} format instead.


Failed attempt to solve

I've tried to solve the issue using Claude too, but I couldn't make it work... This is the explanation it gave me, take it with a grain of salt:

Important discovery: Basecamp's newer blob-based attachments use storage URLs (storage.3.basecamp.com) that require browser-based session authentication. OAuth tokens (which bc4 uses) cannot download these files through the API. This appears to be a Basecamp API limitation, not a bug in bc4.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions