Here is a query directly to my microservice:
`xx@xx:~$ curl -i -X POST -H “Content-Type: application/json” -H “X-User-Id: 4” -d ‘{ “query”: “query { hasUserPhoto }” }’ http://localhost:5017/graphql
HTTP/1.1 200 OK
date: Sun, 16 Feb 2025 16:14:03 GMT
server: uvicorn
content-length: 32
content-type: application/json
vary: ETag
etag: f827cf462f62848df37c5e1e94a4da74
This is the the same query, but now to the Apollo Router:
* Host localhost:4999 was resolved.
- IPv6: ::1
- IPv4: 127.0.0.1
- Trying [::1]:4999…
- connect to ::1 port 4999 from ::1 port 47860 failed: Connection refused
- Trying 127.0.0.1:4999…
- Connected to localhost (127.0.0.1) port 4999
POST /graphql HTTP/1.1
Host: localhost:4999
User-Agent: curl/8.5.0
Accept: /
Content-Type: application/json
X-User-Id: 1
Content-Length: 37
< HTTP/1.1 200 OK
< content-type: application/json
< vary: origin
< content-length: 31
< date: Sun, 16 Feb 2025 16:14:54 GMT
<
- Connection #0 to host localhost left intact`
My router.yaml as i run as conf file:
`supergraph:
introspection: true
listen: 0.0.0.0:4999
path: /graphql
sandbox:
enabled: true
homepage:
enabled: false
headers:
all:
request:
- propagate:
named: “X-User-Id”
`
What is the problem here? Do i need to propagate from the microservice?