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

[source-mailchimp] AirbyteMessage object has no attribute 'json' during API Key Config Setup in PyAirbyte #446

Open
1 task
MauPerez opened this issue Nov 7, 2024 · 0 comments

Comments

@MauPerez
Copy link

MauPerez commented Nov 7, 2024

Connector Name

source-mailchimp

Connector Version

1.0.0

What step the error happened?

Configuring a new connector

Relevant information

The check() method in Airbyte's connector fails to validate configurations with API key-based authentication, triggering an AirbyteConnectorCheckFailedError. Logs reveal an underlying AttributeError in source_mailchimp, where an AirbyteMessage object lacks the json attribute.

I'm using the open-source airbyte versión 0.19.1 (with pip install airbyte).

import airbyte as ab

source = ab.get_source('source-mailchimp')
config = {
"credentials" : {
        "auth_type": "apikey",
        "apikey": apikey_value
    }

}

source.set_config(config=config)
source.check()

Relevant log output

"error":{"message":"Something went wrong in the connector. See the logs for more details.","internal_message":"'AirbyteMessage' object has no attribute 'json'"

AirbyteConnectorCheckFailedError
Cell In[4], line 13
      4 config = {
      5 "credentials" : {
      6         "auth_type": "apikey",
   (...)
      9 
     10 }
     12 source.set_config(config=config)
---> 13 source.check()
     15 #print(source._discover())

File ~/Documents/git/connectors/airbyte-mailchimp/lib/python3.10/site-packages/airbyte/_connector_base.py:336, in ConnectorBase.check(self)
    330     raise exc.AirbyteConnectorCheckFailedError(
    331         connector_name=self.name,
    332         message="The connector `check` operation did not return a status.",
    333         log_text=self._last_log_messages,
    334     )
    335 except exc.AirbyteConnectorFailedError as ex:
--> 336     raise exc.AirbyteConnectorCheckFailedError(
    337         connector_name=self.name,
    338         original_exception=ex,
    339     ) from None
...

Contribute

  • Yes, I want to contribute
@MauPerez MauPerez changed the title 'AirbyteMessage' object has no attribute 'json' during API Key Config Setup in PyAirbyte [source-mailchimp] AirbyteMessage object has no attribute 'json' during API Key Config Setup in PyAirbyte Nov 7, 2024
@marcosmarxm marcosmarxm transferred this issue from airbytehq/airbyte Nov 7, 2024
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

1 participant