Embedding failed because of invalid URL or authorization code. Both of these must be valid and the authorization code must not be expired for embedding to work

Hello @hubaozhang , welcome to the QuickSight community!

I would check out these two topics where users ran into similar issues: