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

Throws exception on Cloudflare Workers #3

Open
jgentes opened this issue Mar 9, 2024 · 1 comment
Open

Throws exception on Cloudflare Workers #3

jgentes opened this issue Mar 9, 2024 · 1 comment

Comments

@jgentes
Copy link

jgentes commented Mar 9, 2024

The SDK will throw an exception if used in a Cloudflare Worker:

Error: AxiosError
Reason: No suitable adapter to dispatch the request. Adapter xhr is not supported by the environment and adapter http is not available in the build.
Code: ERR_NOT_SUPPORT
Status: null
Level: error

I don't believe Axios is supported via Workers. A solution may be to use direct http fetch requests instead of Axios.

@suhaotian
Copy link
Contributor

Hi, PR here, by just change few lines code:

#4

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

No branches or pull requests

2 participants