Hi, We would like to do flow registers from Github...
# prefect-community
Hi, We would like to do flow registers from Github Actions when a new flow gets merged into master. To accomplish this, we have our graphql end point protected through SSL using a certificate and we define it as an environment variable PREFECT__CLOUD__GRAPHQL=https://protected.grpahql.endpoint.com so prefect from Github Action runner linux image has access to this. So this endpoint is only accessible though https and using ca certificates. I've tested that this end point works on Chrome with the give certificate and it works fine. However, when we try to call it through Github Actions runners i keep getting: prefect.TaskRunner | FAIL signal raised: FAIL('Failed to register flow_test, error: 400 Client Error: Bad Request for url: https://protected.grpahql.endpoint.com/\nThis is likely caused by a poorly formatted GraphQL query or mutation but the response could not be parsed for more details') Here is some of the things i've tried 1) configured the certificate by adding it to the Github actions runner image at /usr/local/share/ca-certificates/graphCert.crt and then 'dpkg-reconfigure ca-certificates' 2) Declared python env variable to tell it where too look for the ca certs REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt Does any one of you have a similar setup where your graphql endpoint is protected in this way? When it's not protected our setup works just fine... Thank you in advance...
Hi! I don’t have any knowledge of this setup but I can suggest that you insert a breakpoint at https://github.com/PrefectHQ/prefect/blob/master/src/prefect/client/client.py#L369 and inspect the exceptions there to figure out more details.
👍 1