However, I get the following error (ACCOUNT_ID and...
# prefect-cloud
r
However, I get the following error (ACCOUNT_ID and WORSKPACE_ID as obtained from a prefect agent):
Copy code
[ERROR] ConnectionError: HTTPSConnectionPool(host='api.prefect.cloud', port=443): Max retries exceeded with url: /api/accounts/{ACCOUNT_ID}/workspaces/{WORKSPACE_ID} (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f04a5873310>: Failed to establish a new connection: [Errno 110] Connection timed out'))
3. Any tips what could cause the error?
2
r
when you say provides internet access - have you got a NAT Gateway
1
the approach is fine - prefect mentioned they were hoping to bring triggers from s3 out in the future but atm is good
r
When I run the query via request locally, I get the following response:
Copy code
status_code:
405
text:
'{"detail":"Method Not Allowed"}'
This is the code I am using
r
Nice catch!
👍 1
I now get the
422
error, so getting closer 👌
r
yeah your payload is not right
r
Yes, so far I used
Copy code
query = """
    mutation($flowId: UUID!) {
      create_flow_run(input: { flow_id: $flowId }) {
        id
        name
        flow {
          id
          name
        }
      }
    }
    """
and
Copy code
mutation($flowId: UUID!) {
      create_flow_run(input: { flow_id: $flowId })
}
I am new to GraphQL, so I have difficulties translating from the docs into a proper query 🌱
r
Ah prefect 2 is rest not graph
(thankfully)
💯 1
r
omg
r
Also - you could use a python lambda and use the python api to create a flow run
r
yeah, that sounds like a much better approach
Do you have some pointers on which docs I should read?
r
sure
note the 'Orion' nomenclature is now Server
r
OK!
Wow, haven't used prefect for a year now and things have changed so much (for the better it seems)! Thanks for your help so far! Will read up and get back here if needed 🙂
👍 2
r
No probs