Replies: 1 comment
-
You would need to specify |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You would need to specify |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I', using the HTTP datasource from the Apollo GraphQL server project, which makes use of undici. For local development I wanted to point my data source into my Kubernetes cluster using the Kubernetes proxy feature. To do so one has to create a URL that contains information for the Kubernetes proxy, how to forward requests to that URL.
So my URL looks like this:
http://localhost:8001/api/v1/namespaces/some-namespace/services/some-service:8080/proxy/
. Sadly this leads to an exception in undici when parsing the origin.undici/lib/core/util.js
Lines 71 to 79 in 727ba62
Since the pathname of my URL is
/api/v1/namespaces/some-namespace/services/some-service:8080/proxy/
I get an error and can not continue.Could you explain, why you consider an URL that has a path name other than
/
as invalid?Thanks
Beta Was this translation helpful? Give feedback.
All reactions