Raise exceptions when getting amazon ID and SIG.