Open nataliekwong opened 1 year ago
+1
@jovezhong @nataliekwong
I was facing the same issue described here by @jovezhong https://github.com/airbytehq/airbyte/issues/32433
The error account not valid:
The Youtube account is not valid. Please make sure you're trying to use the active Youtube Account connected to your Google Account.
Seem to be generated by this piece of connector code:
def check_connection(self, logger, config) -> Tuple[bool, any]:
authenticator = self.get_authenticator(config)
jobs_resource = JobsResource(authenticator=authenticator)
result = jobs_resource.list()
if result:
return True, None
else:
return (
False,
"The Youtube account is not valid. Please make sure you're trying to use the active Youtube Account connected to your Google Account.",
)
I am just figuring out this API - so making some assumptions:
jobs_resource.list()
will be always empty. I cannot say yet if the Airtbyte connector gets all the reports with data or only the one for which I called jobs.create. Might need to wait 24 hours for report to be generated.
Improve the error messages emitted for the Youtube Analytics source.
Error Type: Not sure
Suggestion: Not sure at this time - need more information on why this error message shows up.