The provided transaction-id must have the length of 64 characters. If not, an error message will be returned
The average time a ledger closes is 5,5 seconds. When you try to get a hash that is stored only a second ago, you will not be able to retrieve the hash. Try again in a couple of seconds (error message is given).