From 5831a6ab38d96bb51c7f05d891efa06a4edbe066 Mon Sep 17 00:00:00 2001 From: dwisdom-tk <98771400+dwisdom-tk@users.noreply.github.com> Date: Fri, 20 Dec 2024 08:13:18 -0800 Subject: [PATCH] [docs] change HTTPS to HTTP in GraphQL API example (#17373) ## Summary & Motivation If I start up the example project locally with `dagster dev` and then try to connect to the GraphQL endpoint with`gql` using the link in the example, I get an `SSL_WRONG_VERSION` error. I also get this error if I use `dagster_graphql.DagsterGraphQLClient` with `use_https=True`. ``` requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=3000): Max retries exceeded with url: /graphql (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:992)'))) ``` I figured out that the error means I'm trying to connect to something that doesn't use HTTPS. Here's an example of someone explaining the error: https://github.com/psf/requests/issues/5943#issuecomment-925930558 ## How I Tested These Changes If I change the link to instead use HTTP, `gql` successfully connects and queries the endpoint. `dagster_graphql.DagsterGraphQLClient` works as expected if I set `use_https=False`. --- docs/content/concepts/webserver/graphql.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/concepts/webserver/graphql.mdx b/docs/content/concepts/webserver/graphql.mdx index a5f765e33275a..094aa61bbc502 100644 --- a/docs/content/concepts/webserver/graphql.mdx +++ b/docs/content/concepts/webserver/graphql.mdx @@ -28,7 +28,7 @@ The GraphQL API is served from the webserver. To start the server, run the follo dagster dev ``` -The webserver serves the GraphQL endpoint at the `/graphql` endpoint. If you are running the webserver locally on port 3000, you can access the API at . +The webserver serves the GraphQL endpoint at the `/graphql` endpoint. If you are running the webserver locally on port 3000, you can access the API at . ### Using the GraphQL playground