Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Failing #22

Open
jb-ut opened this issue Jan 8, 2024 · 5 comments
Open

Sync Failing #22

jb-ut opened this issue Jan 8, 2024 · 5 comments

Comments

@jb-ut
Copy link

jb-ut commented Jan 8, 2024

Getting following response after clicking "Run" for Google Sheets connector.

✖️ RUN FAILED ... got error:
Authorization is required to perform that action.

Confirmed Mixpanel Service Account User access level set at: Admin
Verified Service Account Secret

@ak--47
Copy link
Member

ak--47 commented Jan 11, 2024

@jb-ut are you on a free plan trying to export mixpanel => sheets?

@SarahTastewise
Copy link

SarahTastewise commented Mar 28, 2024

@ak--47
I am experiencing the same exact issue.
Confirmed Mixpanel Service Account User access level set at: Admin

I am not on a free plan on Mixpanel.

Any additional suggestions ?

@tomredman
Copy link

@SarahTastewise, I just ran into this.

This error is actually coming from Google Scripts -- if you're logged into multiple Google Account, add the Mixpanel <> Sheets add-on to each Google account. (My technical assumption here is that GScripts run as whoever is logged in as "/u/0").

Second, to make edits to a lookup table it looks like it needs to (A) exist and (B) be "Shared" first:
Image

And the lookup table ID is found here (I thought it was the table name, but it's the pre-existing ID):
Image

Would be nice to see complete end-to-end instructions in the readme @ak--47 :)

@tomredman
Copy link

Hmm, nevermind. Can't get my service account to work, even though it's an Owner in the org, has Owner access to the project:

Image

Image

@tomredman
Copy link

Looks like the issue is with the validate() function. It actually returns:

{ error: 'data, missing or empty', status: 0 }

Which is not what is expected in https://github.com/mixpanel/sheets/blob/main/utilities/validate.js#L46-L64

Updating the expected value to this works for my case (service account & updating lookup table):

const expected = {
  error: "data, missing or empty",
  status: 0,
};

PR here #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants