Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify HTTP Service Binding Needs Valid URL #18581

Open
sabercoy opened this issue Dec 5, 2024 · 0 comments
Open

Clarify HTTP Service Binding Needs Valid URL #18581

sabercoy opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
content:edit Request for content edits documentation Documentation edits product:workers Related to Workers product

Comments

@sabercoy
Copy link

sabercoy commented Dec 5, 2024

Existing documentation URL(s)

https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/http/

What changes are you suggesting?

When calling a bound worker's fetch method, it is not clear and not mentioned what the URL should be. When thinking about it, the worker is bound, suggesting there should be no need for a URL.

I have run in to the same issue as these
https://community.cloudflare.com/t/service-binding-to-other-worker-not-working/559030
https://community.cloudflare.com/t/service-binding-pages-function-to-worker-cant-call-path/647192

The solution appears to be to add any valid URL with a hostname (it will be ignored anyway).
I am suggesting mentioning this in the docs, for the docs only give examples of passing through or cloning requests with internal, already-valid URLs

Additional information

No response

@sabercoy sabercoy added content:edit Request for content edits documentation Documentation edits labels Dec 5, 2024
@github-actions github-actions bot added the product:workers Related to Workers product label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content:edit Request for content edits documentation Documentation edits product:workers Related to Workers product
Projects
None yet
Development

No branches or pull requests

5 participants