Errors

Could not create download link

Download grant mint failed after checks passed — usually a database or server error.

Could not create download link

The download grant API passed captcha/password/limits checks, then failed while creating the DownloadGrant row (500). The visitor cannot start the timed download link.

Why this happens

Database insert error (connectivity, constraint, disk, migration drift) or another unexpected failure inside download-grant create. Not the same as bandwidth, captcha, or password rejections — those return clearer messages first.

Diagnose and fix

1. Check app/DB logs at the grant timestamp for the underlying Prisma/SQL error.

2. Confirm migrations applied and the DownloadGrant table is healthy.

3. Retry; if every mint fails, treat it as an ops/DB outage.

4. Client fallback Could not create link appears when the response has no mapped error — fix the server so a proper code is returned.

Related

Could not create download link