VSCode: AI features are not enabled or resource is not permitted to be sent

I was very excited to try GitLab Duo, but I can’t make it work on VSCode.

General details

  1. What are you seeing, and how does it differ from what you expect to see?

After getting into the trial for GitLab Ultimate, installing the Gitlab Workflow extension on VSCode, and authenticating, I get the following error when trying to use Duo:

AI features are not enabled or resource is not permitted to be sent.

I also get no suggestions.

  1. Consider including screenshots, error messages, and/or other helpful visuals, following the formatting tips.

  1. What version are you on (Hint: /help) ? and are you using self-managed or GitLab.com SaaS?
  • Gitlab SaaS
  • VSCode 1.85.1
  • GitLab Workflow v3.93.1
  1. What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
  • I’ve tried using an access token.
  • Also removing the account and adding it again,
  • and uninstalling and reinstalling the extension.
  • Finally tried setting the Preferred Account value with the account url, name, and domain.

GitLab Duo details

  1. Which GitLab Duo feature is involved?

Chat and code suggestions

  1. Please share the documentation or website you have been reading.

Thank you for your help!

Thanks for your feedback.

Which steps did you take in VS Code? I would assume that the left menu with Duo Chat icon is involved?

In your VS Code Settings, search for GitLab workflow and check that Code suggestions and GitLab Duo Chat are enabled.

1 Like

I’ve also asked our engineering teams, with additional thoughts and questions:

  1. What was the question in the chat?
  2. Duo Chat works for group namespaces. If the Ultimate trial is for a personal namespace, Duo Chat will not work yet.

They are.

  1. What was the question in the chat?

I’ve tried several questions, including just saying “hi”, and the suggested questions (ie “How do I fork a project?”)

  1. Duo Chat works for group namespaces. If the Ultimate trial is for a personal namespace, Duo Chat will not work yet.

I did create a group and got Ultimate SaaS Trial Plan for it. I didn’t even know I could get it without the group.

Thanks for the details. One more question:

  1. Did you enable the Experimental and beta features setting on the group level?

It should look like this in Permissions and Group Features in https://gitlab.com/groups/GROUPNAME/-/edit

1 Like

That was it! Now it works, thanks a lot.

I’d suggest this needs to be explained better when onboarding people. I got here through following Gitlab’s anouncement of Duet, I think, expecting a relatively straight path from there, to enabling the trial, to testing it on VSCode. Gitlab’s UX is generally better than this.

It’s also entirely possible that it was all my fault, of course :sweat_smile: .

Cheers!