rawwar opened a new issue, #52079:
URL: https://github.com/apache/airflow/issues/52079

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   SnowflakeSqlApiOperator's `get_sql_api_query_status` method directly tries 
to do `response.json` and this sometimes fails with JSONDecode error when the 
response isn't a JSON.
   
   We should first do `response.raise_for_status()` to ensure we don't try to 
parse response body when the API request has failed.
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   It's an intermittent issue and I am not sure how to reproduce this. But, we 
can definitely have a test case where response not a JSON.
   
   ### Operating System
   
   mac os
   
   ### Versions of Apache Airflow Providers
   
   main
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to