Why does a wallet still fail to make a request when an Ethereum multi-token contract returns a metadata link?

Some $ETH multi-token contracts return a link template containing {id} from their uri method. The client must replace this placeholder with the token ID before requesting the metadata. According to the ERC-1155 standard, the replacement value must use lowercase hexadecimal without a prefix, and be left-padded with zeros to 64 characters.

For example, a wallet may insert the decimal token ID directly into the link, or convert it to hexadecimal without padding it to the required length, which can result in a request for a different file path. If the page shows that the image failed to load, first compare the contract’s raw return value with the request actually sent by the client, then check whether the file itself exists.

When archiving, the indexer can also save the original template and the substituted address. The former makes it easier to review what the contract returned, while the latter helps identify the file that was actually read. If different IDs share the same template, only the substituted address reflects which metadata file was read this time.

Original source https://eips.ethereum.org/EIPS/eip-1155