Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

TypeError: Only absolute URLs are supported #115

Open
Hassnain-Alvi opened this issue Aug 20, 2019 · 1 comment
Open

TypeError: Only absolute URLs are supported #115

Hassnain-Alvi opened this issue Aug 20, 2019 · 1 comment

Comments

@Hassnain-Alvi
Copy link

Hassnain-Alvi commented Aug 20, 2019

I need to use sub tiers url to test my workers but when i pass the URL in form of
https://example.com/hello/world/abcdef-123456-gfcvmh it raises an unhandled exception below:

node:21730) UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported

How can i test complex URLs with workers?

@transitive-bullshit
Copy link

I got this as well when I accidentally passed a Promise as the URL instead of awaiting a response.

The error message could definitely be clearer if we don't pass a string or an instance of URL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants