Trying to run a Daml Script compiled with SDK 2.2.0 against Daml Hub, getting cryptic error

I think this might be due to a mismatch between the SDK and Hub version, causing the package ID for Daml Script to differ from the expected one. The Daml Hub UI should show you the SDK version which is currently used as mentioned here.