Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.24k stars 436 forks source link

VS Code REST Client not working on MacOS for some weird, unknown reason (NextJS) #1228

Open psygo opened 10 months ago

psygo commented 10 months ago

Steps to Reproduce:

  1. Create a simple API with NextJS (I have no idea if this is something related to NextJS, probably not)
  2. Send any requests to it and get a not found response.

I have no idea how to investigate this. My setup is super basic, and all this works on my Linux machine, but on my new Macbook Pro, it doesn't seem to work. I've already tested it with Postman and Chrome (on Mac and on Linux), and everything seems to be working fine, except I get a "not found" through the VS Code REST Client extension on the Mac.

Here's an example:

### Health

GET http://localhost:3000/api/health
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 149
Date: Sun, 26 Nov 2023 13:48:36 GMT
Connection: close

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/health</pre>
</body>
</html>

Why would it work everywhere but not on through this extension? Why only on my Mac?

yoyoys commented 6 months ago

I have same problem here, I post a request to postman is okay but not in rest client

CleanShot 2024-03-29 at 13 07 33@2x

![Uploading CleanShot 2024-03-29 at 13.08.01@2x.png…]()

Domsal2002 commented 6 months ago

You ever find a resolution to this ?

psygo commented 2 months ago

Still happening here...