You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a GraphQL datasource in Lowcoder running in a Docker Compose environment, the URL validation rejects valid Docker service names without domain suffixes. Specifically, when attempting to connect to a GraphQL API using the Docker service name (e.g., http://api:8000/graphql), Lowcoder shows the error "Please Enter a Correct URL".
However, URLs with domain-like suffixes (e.g., http://api.foobar:8000/graphql) are accepted.
Expected Behavior
Lowcoder's GraphQL datasource URL validation should accept standard Docker service names as valid hostnames without requiring domain suffixes, allowing seamless integration with other services in the same Docker Compose network.
Steps to reproduce
Set up a Docker Compose environment with Lowcoder and a GraphQL API service (named "api" running on port 8000)
Navigate to Lowcoder's datasource creation page
Select GraphQL as the datasource type
Enter a name for the datasource (e.g., "graphql-api")
In the URL field, enter http://api:8000/graphql
Observe the validation error: "Please Enter a Correct URL"
Change the URL to include a fake domain suffix: http://api.foobar:8000/graphql
Note that this URL is accepted despite only differing by the addition of a fake domain suffix
Environment
Lowcoder version: Lowcoder CE v2.6.5
Deployment: Docker Compose
Browser: Firefox
OS: Arch Linux
Docker Compose configuration: Multi-container setup with Lowcoder and GraphQL API service
Additional Information
The issue appears to be specific to the GraphQL datasource, as other types of connections may not exhibit the same validation constraints.
Current workaround: Add a dns alias to the docker service you're trying to reach. e.g.
services:
api:
# Your existing configurationnetworks:
default:
aliases:
- api.internal
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
When creating a GraphQL datasource in Lowcoder running in a Docker Compose environment, the URL validation rejects valid Docker service names without domain suffixes. Specifically, when attempting to connect to a GraphQL API using the Docker service name (e.g.,
http://api:8000/graphql
), Lowcoder shows the error "Please Enter a Correct URL".However, URLs with domain-like suffixes (e.g.,
http://api.foobar:8000/graphql
) are accepted.Expected Behavior
Lowcoder's GraphQL datasource URL validation should accept standard Docker service names as valid hostnames without requiring domain suffixes, allowing seamless integration with other services in the same Docker Compose network.
Steps to reproduce
http://api:8000/graphql
http://api.foobar:8000/graphql
Environment
Lowcoder version: Lowcoder CE v2.6.5
Deployment: Docker Compose
Browser: Firefox
OS: Arch Linux
Docker Compose configuration: Multi-container setup with Lowcoder and GraphQL API service
Additional Information
The issue appears to be specific to the GraphQL datasource, as other types of connections may not exhibit the same validation constraints.
Current workaround: Add a dns alias to the docker service you're trying to reach. e.g.
The text was updated successfully, but these errors were encountered: