kubatyszko commented on pull request #10256:
URL: https://github.com/apache/airflow/pull/10256#issuecomment-671111509


   In my backend, I simply have: https://domain.com:443 (the 443 doesn't matter 
here).
   For the http hook to parse it correctly using airflow.models.connection, I 
would have to set it to: http://domain.com:443/https - where https would be 
interpreted as the schema field, not path element (path passed via URL is 
actually grabbed using httpoperator's endpoint field).
   
   The schema field in URI specs you mentioned, make sense for databases, where 
you could specify it as say mysql://host.com:3636/dbschema, but for HTTP it 
doesn't.
   
   As far as HTTP hook goes, the leading "http" or "https" should be parsed 
both as schema and conn_type, where in conn_type it always replaces https with 
http. but schema should contain the true protocol to use to reconstruct the URL 
passed to the server.
   
   And yes, that prior issue seems related, but it was closed (seems to have 
been resolved), and yet it did not work for me...


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to