Skip to content

ERR Can't create stack error=createStack, POST, http://localhost:2283/api/stacks, 400 Bad Request #749

@simulot

Description

@simulot

This error occurs when uploading a takeout with version v0.23 or higher to a server that already has the same photos uploaded using Immich-go version v0.22.

Path to reproduce:

  1. You have several versions of the same photo with related JSON files:
    • IMG_20160824_190249.jpg
    • IMG_20160824_190249(1).jpg
    • IMG_20160824_190249-edited.jpg
    • IMG_20160824_190249.jpg.supplemental-metadata(1).json
    • IMG_20160824_190249.jpg.supplemental-metadata.json
  2. Use Immich-go v0.21 to upload them, but notice that the JSON files are not correctly matched with their respective photos.
  3. Upload them again using a takeout with Immich-go v0.23+.

Analysis

  1. immich-go replaces uploaded assets with IMG_20160824_190249.jpg, 🤔
  2. immich-go stacks the 3 photos that are now identical, leading a bad request 😓
2025-02-23T08:13:01+01:00 QUERY 12 createStack POST http://localhost:2283/api/stacks
   Accept [application/json]
   Content-Type [application/json]
   X-Api-Key redacted
-- request JSON Body --
{
 "assetIds": [
  "",
  "4927d2c7-75e8-40cd-b327-d92ff899860b"
 ]
}

Thank to @azwillnj for sharing his samples

Sub-issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions