"json: cannot unmarshal string into Go struct" while installing postgresql snap

$ sudo snap install postgresql
error: cannot install "postgresql": json: cannot unmarshal string into Go struct field
       storeSnap.results.snap.links of type []string
$ snap --version
snap          2.74.1+ubuntu24.04.4
snapd         2.74.1+ubuntu24.04.4
series        16
ubuntu        24.04
kernel        6.8.0-110-generic
architecture  amd64

This happens with all channels of the postgresql snap, and doesn’t happen with other snaps I’ve tried.

Well, the problem just went away for some mysterious reason…