Open motleydev opened 4 months ago
Compose.yaml
services:
mongodb_crm:
build:
context: .
dockerfile_inline: |-
FROM ghcr.io/hasura/ndc-postgres:v0.8.0
COPY ./ /etc/connector
develop:
watch:
- path: ./
action: sync+restart
target: /etc/connector
env_file:
- .env.local
extra_hosts:
- local.hasura.dev=host-gateway
ports:
- mode: ingress
target: 8080
published: "8085"
protocol: tcp
configuration populated correctly, all the files seem to be correct expect for this connection error with the postgres connector
Perhaps related to the otel container not working I get this error, thought running pat is actually set
2024-07-15T09:06:44.216Z info envprovider@v0.104.0/provider.go:53 Configuration references empty environment variable {"name": "HASURA_DDN_PAT"}
otel-collector-1 | Error: failed to resolve config: cannot resolve the configuration: expanding ${env:HASURA_DDN_PAT}: expected convertable to string value type, got %!q(<nil>)(<nil>)
otel-collector-1 | 2024/07/15 09:06:44 collector server run finished with error: failed to resolve config: cannot resolve the configuration: expanding ${env:HASURA_DDN_PAT}: expected convertable to string value type, got %!q(<nil>)(<nil>)
the connector issue is that I was trying to use localhost stupidly for the connecting string. That being said, I wonder if we could throw a more helpful error?
Otel container not being able to expand the ddn pat command is a real problem though
Component
Impacts CLI/Connectors
What is the current behaviour?
Added a data connector (postgres, called CRM, in a subgraph called MongoDB - don't ask) and when I attempt to update the connector link, it says it can't read the schema, I am unsure what to do next.
9:32AM ERR Unable to retrieve schema for DataConnectorLink "crm" in Subgraph config "/Users/jmartin/Development/Hasura/demos/mongo-atlas/ddn/mongodb/subgraph.yaml": Error fetching schema: Get "http://local.hasura.dev:8085/schema": dial tcp 127.0.0.1:8085: connect: connection refused
What is the expected behaviour?
Provide a hint where to look. Is there an auth issue, is the server down, etc.
How to reproduce the issue?
Please provide any traces or logs that could help here.
From the monodb_crm connector container
Any possible solutions/workarounds you're aware of?
Unknown
Keywords
DX