Andriy Sapryka
07/05/2022, 12:10 PMfrom dagster_graphql import DagsterGraphQLClient
client = DagsterGraphQLClient(hostname="localhost", port_number=3000, use_https=True)
Error:
{DagsterGraphQLClientError}Error when connecting to url https://localhost:3000/graphql. Did you specify hostname: localhost and port_number: 3000 correctly?I'm using ssh connection to an instance and then connect to Dagit via localhost:
ssh -N -L 3000:<uri>:3000 <username>@<instance_id>
I can successfully open https://localhost:3000/graphql in browser and in Postman (although I had to disable SSL validation in Postman).
I'm assuming I get SSL validation error in the code as well but I don't know how to handle it in PyCharm.
Thanks in advance for assistance.prha
07/05/2022, 6:47 PMuse_https=False
?Andriy Sapryka
07/05/2022, 7:01 PM{HTTPError}400 Client Error: Bad Request for url: <http://localhost:3000/graphql>
prha
07/07/2022, 6:54 PMrequests
library under the hood.Andriy Sapryka
07/08/2022, 9:04 AM