Skip to content

get_hook() got an unexpected keyword argument 'hook_params' #28093

@raefezzeldin

Description

@raefezzeldin

Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

Working with Airflow version 2.2.2
When trying to connect to Snowflake connection.
the following errors appears

 hook = conn.get_hook(hook_params=self.hook_params)
TypeError: get_hook() got an unexpected keyword argument 'hook_params'

What you think should happen instead

it was working normally three days ago, and it returns data from snowflake and append it into google sheets

How to reproduce

No response

Operating System

MWAA

Versions of Apache Airflow Providers

Package Name Version Description
apache-airflow-providers-amazon 4.1.0 Amazon integration (including Amazon Web Services (AWS)).
apache-airflow-providers-celery 2.1.0 Celery
apache-airflow-providers-common-sql 1.3.1 Common SQL Provider
apache-airflow-providers-ftp 2.0.1 File Transfer Protocol (FTP)
apache-airflow-providers-google 8.2.0 Google services including:- Google Ads- Google Cloud (GCP)- Google Firebase- Google LevelDB- Google Marketing Platform- Google Workspace (formerly Google Suite)
apache-airflow-providers-http 2.0.1 Hypertext Transfer Protocol (HTTP)
apache-airflow-providers-imap 2.0.1 Internet Message Access Protocol (IMAP)
apache-airflow-providers-jdbc 2.1.3 Java Database Connectivity (JDBC)
apache-airflow-providers-postgres 4.1.0 PostgreSQL
apache-airflow-providers-slack 4.2.3 Slack
apache-airflow-providers-snowflake 3.1.0 Snowflake
apache-airflow-providers-sqlite 2.0.1 SQLite

Deployment

MWAA

Deployment details

MWAA version 2.2.2

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions