Skip to content

Commit 4db12b1

Browse files
committed
Website/script infra: add info regarding /graphql suffix
1 parent 7ad6241 commit 4db12b1

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

website/docs/developers/scripts/infrastructure/query-block-height.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Usage: $0 GRAPHQL_ENDPOINT
3-
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required)
3+
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required, must end with /graphql)
4+
# Example: https://mina-rust-plain-2.gcp.o1test.net/graphql
45

56
if [ -z "$1" ]; then
67
echo "Error: GRAPHQL_ENDPOINT is required"

website/docs/developers/scripts/infrastructure/query-daemon-status.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Usage: $0 GRAPHQL_ENDPOINT
3-
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required)
3+
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required, must end with /graphql)
4+
# Example: https://mina-rust-plain-2.gcp.o1test.net/graphql
45

56
if [ -z "$1" ]; then
67
echo "Error: GRAPHQL_ENDPOINT is required"

website/docs/developers/scripts/infrastructure/query-peers.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Usage: $0 GRAPHQL_ENDPOINT
3-
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required)
3+
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required, must end with /graphql)
4+
# Example: https://mina-rust-plain-2.gcp.o1test.net/graphql
45

56
if [ -z "$1" ]; then
67
echo "Error: GRAPHQL_ENDPOINT is required"

website/docs/developers/scripts/infrastructure/test-graphql-endpoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Usage: $0 GRAPHQL_ENDPOINT
3-
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required)
3+
# GRAPHQL_ENDPOINT: GraphQL endpoint URL (required, must end with /graphql)
4+
# Example: https://mina-rust-plain-2.gcp.o1test.net/graphql
45

56
if [ -z "$1" ]; then
67
echo "Error: GRAPHQL_ENDPOINT is required"

website/docs/node-operators/infrastructure/plain-nodes.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@ If you cannot connect to plain nodes:
109109

110110
Common API issues:
111111

112+
<!-- prettier-ignore-start -->
113+
114+
:::caution GraphQL Endpoint URL Format
115+
116+
When using plain node endpoints, **always include `/graphql` at the end of the
117+
URL**. The endpoint will return "HTTP method not allowed" if you omit the
118+
`/graphql` path.
119+
120+
**Correct**: `https://mina-rust-plain-2.gcp.o1test.net/graphql`
121+
**Incorrect**: `https://mina-rust-plain-2.gcp.o1test.net/`
122+
123+
:::
124+
125+
<!-- prettier-ignore-stop -->
126+
112127
<CodeBlock
113128
language="bash"
114129
title="website/docs/developers/scripts/infrastructure/test-connectivity.sh"

0 commit comments

Comments
 (0)