Hi team, I am using datahub 0.9.0 and trying to in...
# troubleshoot
p
Hi team, I am using datahub 0.9.0 and trying to ingest data using the cli from trino but the ingestion is failing with HttpError: error 400: b'<html>\r\n<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>\r\n<body>\r\n<center><h1>400 Bad Request</h1></center>\r\n<center>The plain HTTP request was sent to HTTPS port</center>\r\n</body>\r\n</html>\r\n' Can someone help me with the issue is and how I can fix it. TIA
e
hey @polite-ghost-91039 can you provide the full stacktrace?
p
@echoing-airport-49548 Here it is
a
Hi Sandi, could you try the steps listed here and let me know if anything changes? https://datahubproject.io/docs/debugging/
p
Hi @astonishing-answer-96712 I tried the steps and everything is green. I am able to connect other sources as well like pg, Kafka and dbt. Facing issue only with trino
a
Hi Sandi, have you reviewed the Trino ingestion docs as well? https://datahubproject.io/docs/generated/ingestion/sources/trino
b
@astonishing-answer-96712 My trino instance is not running via HTTPS. Are we able to specify that in the recipe? Right not I get errors due to the ingestion calling the HTTPS endpoint. Thanks!
Copy code
"[2022-11-15 15:25:46,797] ERROR    {datahub.entrypoints:206} - Command failed: HTTPSConnectionPool(host='172.30.231.2', port=8085): Max "
           'retries exceeded with url: /v1/statement (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f745dcb5a20>, '
           "'Connection to 172.30.231.2 timed out. (connect timeout=30.0)'))\n"
a
@gray-shoe-75895 any idea if it’s possible to set the Trino source to http instead of https?
g
Could you try setting - you’ll need to click the yaml tab in the UI
Copy code
# options should be at the same level of indentation as username, password, etc
options:
  connect_args:
    http_scheme: http
b
@gray-shoe-75895 That worked perfectly. Thank you!
g
Awesome - I’ve added that to our sample recipe in the docs https://github.com/datahub-project/datahub/pull/6461