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

Object literal may only specify known properties, and  agent  does not exist in type  FetchOptions<'json'>  #316

Closed
cdwmhcc opened this issue Nov 6, 2023 · 2 comments

Comments

@cdwmhcc
Copy link

cdwmhcc commented Nov 6, 2023

Environment

nodejs: 20.9.0
ofetch: 1.3.3

Reproduction

import { ofetch } from "ofetch"
import { HttpsProxyAgent } from "https-proxy-agent"

await ofetch("user", {
    agent: new HttpsProxyAgent("http://127.0.0.1:7890"),
})

Describe the bug

image

Additional context

No response

Logs

No response

@treboryx
Copy link

treboryx commented Jun 1, 2024

I'm getting the same error even by using dispatcher and ProxyAgent from undici

@pi0
Copy link
Member

pi0 commented Aug 28, 2024

#308 adds missing types

@pi0 pi0 closed this as completed Aug 28, 2024
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

3 participants