Dung Khuc
06/09/2022, 6:01 PMError downloading Flow from Azure: ('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Following env vars are set
HTTPS_PROXY=x.x.x.x
AZURE_STORAGE_CONNECTION_STRING=xxxx
We can connect to blob should just fine using az
. Any pointer?Kevin Kho
import requests
query = """
{
flow{
id
name
}
}
"""
response = <http://requests.post|requests.post>(
url="<https://api.prefect.io>",
headers=dict(authorization=f"Bearer {API_KEY}"),
)
print(response.status_code)
print(response.text)
and maybe it will have more details in the traceback?Anna Geller
Dung Khuc
06/09/2022, 7:21 PMquery
value to data
param in <http://requests.post|requests.post>
? I got 'POST body missing. Did you forget use body-parser middleware?'Dung Khuc
06/09/2022, 7:21 PMKevin Kho
Kevin Kho
response = <http://requests.post|requests.post>(
url="<https://api.prefect.io>",
json=dict(query=query),
headers=dict(authorization=f"Bearer {API_KEY}"),
)
Dung Khuc
06/09/2022, 7:25 PMstatus_code
is 200 and response.text
returns list of flowsDung Khuc
06/09/2022, 7:28 PM9 June 2022,09:14:31 agent INFO Submitted for execution: PID: 8472
9 June 2022,09:14:32 prefect.Azure INFO Downloading azure-flow/2022-06-09t17-19-17-739489-00-00 from cdp-prefect-agent1
9 June 2022,09:15:57 prefect.Azure ERROR Error downloading Flow from Azure: ('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
9 June 2022,09:15:58 execute flow-run ERROR Failed to load and execute flow run: ServiceRequestError("('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))")
Dung Khuc
06/09/2022, 7:31 PMAzure
storage source code and wrote a separate python script with similar code to download from blob, the script works fineKevin Kho
Dung Khuc
06/09/2022, 8:01 PMDung Khuc
06/09/2022, 8:01 PMDung Khuc
06/09/2022, 8:29 PM"
enclosure.Kevin Kho
Dung Khuc
06/09/2022, 8:30 PM