Skip to content

Bad request when using @nx with copilotΒ #2546

Open
@markusbrite

Description

@markusbrite

Current Behavior

I just prompt it with "@nx suggest improvements"
I do get a reply if I remove @nx

Nx
Retrieving workspace information...

Retrieving relevant documentation...

Thinking...

Request Failed: 400 Bad Request

From the Nx Console logs;
Error fetching AI context: {"responseText":"{"error":"No results found."}","body":{"type":"Buffer","data":[123,34,101,114,114,111,114,34,58,34,78,111,32,114,101,115,117,108,116,115,32,102,111,117,110,100,46,34,125]},"status":500,"headers":{"cache-control":"public, max-age=0, must-revalidate","content-type":"application/json","date":"Mon, 14 Apr 2025 09:47:51 GMT","referrer-policy":"no-referrer","server":"Vercel","strict-transport-security":"max-age=63072000; includeSubDomains; preload","x-content-type-options":"nosniff","x-dns-prefetch-control":"on","x-frame-options":"DENY","x-matched-path":"/api/query-ai-embeddings","x-vercel-cache":"MISS","x-vercel-id":"arn1::kkjzd-1744624069841-b0fbcbe6a54c","x-xss-protection":"1; mode=block","connection":"close","transfer-encoding":"chunked"}}

I have just update both vs code(1.99.2) and nx console plugin(18.45.0)

Expected Behavior

Should give an answer

GitHub Repo

No response

Steps to Reproduce

  1. I just add the prompt and hit enter

Nx Report

npx nx report

 NX   Report complete - copy this into the issue template

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.0

nx                 : 19.6.5
@nx/js             : 19.6.5
@nx/jest           : 19.6.5
@nx/linter         : 19.6.5
@nx/eslint         : 19.6.5
@nx/workspace      : 19.6.5
@nx/angular        : 19.6.5
@nx/cypress        : 19.6.5
@nx/devkit         : 19.6.5
@nx/eslint-plugin  : 19.6.5
@nx/playwright     : 19.6.5
@nx/react          : 19.6.5
@nx/rollup         : 19.6.5
@nx/remix          : 19.6.5
@nrwl/tao          : 19.6.5
@nx/vite           : 19.6.5
@nx/web            : 19.6.5
@nx/webpack        : 19.6.5
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
@nx/rollup/plugin
@nx/remix/plugin
@nx/vite/plugin
@nx/playwright/plugin
---------------------------------------
Community plugins:
@ng-bootstrap/ng-bootstrap : 17.0.1

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions