Better error handling after testing with instance profile credentials (with token)