Skip to content

Silent IPFS pin failures create orphaned metadata #754

@Otaiki1

Description

@Otaiki1

Problem

PinningService.pin() returns null on failure with no logging and no distinction between "pinning disabled" and "actual error" (pinning.service.ts:41-64). Callers proceed as if the CID was pinned — metadata is stored in the DB pointing to content that was never pinned, causing silent data loss.

Fix

Throw a typed error on failure, add structured logging per attempt, and let callers decide whether to abort or continue degraded.

File: backend/src/services/pinning.service.ts:41-64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions