kapa.ai I’m encountering the following issue: "An error occurred (InvalidToken) when calling the ListObjects operation: The provided token is malformed or otherwise invalid." In addition, I’ve completed the following steps (https://docs.mixpanel.com/docs/tracking-methods/warehouse-connectors) 1. Setup AWS Account ID, Cluster ID 2. Create S3 staging bucket, Policy, and Role
It looks like you're encountering an authentication issue with AWS when setting up a Mixpanel Warehouse Connector. The "InvalidToken" error typically indicates that the AWS credentials being used to access the S3 bucket are incorrect or have expired.Based on the steps you've completed for setting up the Warehouse Connector with Redshift, here are some potential solutions: 1. Check IAM Role Configuration: Ensure that the IAM role you created has the correct trust relationship with Mixpanel's account. According to the documentation, you need to set up a specific trust relationship with Mixpanel's account ID (485438090326).2. Verify External ID: If you're using an external ID in your trust relationship (which is recommended for security), make sure it matches your Mixpanel project token exactly.3. Confirm S3 Bucket Permissions: Verify that the policy attached to your role has the necessary S3 permissions (PutObject, GetObject, ListBucket, DeleteObject) for your staging bucket.4. Check Region Configuration: Ensure that the AWS region you specified in the Mixpanel connector setup matches the actual region where your S3 bucket and Redshift cluster are located.For the Redshift connector specifically, the documentation Warehouse Connectors indicates that you need to: 1. Create an S3 staging bucket 2. Create a policy with appropriate permissions 3. Create a role and attach the policy 4. Grant the role to the Mixpanel service accountIf you've already completed these steps but are still encountering the error, I recommend double-checking the trust relationship in your IAM role configuration and ensuring that all permissions are correctly set up.If the issue persists, you might need to check AWS CloudTrail logs to see more details about the failed API calls, which could provide more insight into the specific cause of the authentication failure.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.