vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

When using the REST Client in cursor, the prompt is: Expected the `options.agent` properties to be `http`, `https` or `http2`, got `_events`

Open wangshiyang opened this issue 1 year ago • 9 comments

  • REST Client Version: v0.26.0
  • Cursor Version: 0.42.3
  • OS Version: macos 14.3.1

when click "Send Request": image

wangshiyang avatar Oct 22 '24 06:10 wangshiyang

I have the same problem.

xiaojia21190 avatar Feb 28 '25 07:02 xiaojia21190

+1

gitouyoung avatar Mar 03 '25 09:03 gitouyoung

+1

CrazyBunQnQ avatar Apr 09 '25 02:04 CrazyBunQnQ

+1

wqj97 avatar Jun 13 '25 07:06 wqj97

+1

wjx0912 avatar Jun 20 '25 01:06 wjx0912

I'm not sure why, but it seems to be a proxy issue. You can resolve it by opening .vscode/settings.json and configuring it as follows:

  "rest-client.excludeHostsForProxy": [
        "localhost",
        "127.0.0.1"
    ]

Yooling-lei avatar Jun 20 '25 09:06 Yooling-lei

@Yooling-lei good, it works!

wjx0912 avatar Jun 25 '25 01:06 wjx0912

@Yooling-lei good!!!

minr avatar Jul 01 '25 02:07 minr

I have remove proxy support and rebuild rest-client extension for vscode or cursor and reinstall locally, the problem is gone

litecy avatar Oct 24 '25 01:10 litecy