Skip to content

Preference not set error occurring

Hi Jason, we use an SSH key for our git config and the web protocol for our Gitlab server is http://gitrepop1/example/example.git.

I've generated a PAT for the HTTP URL and added the key/value pair to the settings.json file on VS Code.

My config file looks like this:

[remote "origin"]
	url = git@gitrepop1:example/example.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	puttykeyfile = C:\\Users\\<user>\\Documents\\GitKeys\\PrivateKey.ppk

When I try to view/create an MR, I get the following error:

Gitlab MR: gitlab-mr.accessTokens["http://gitrepop1"] preference not set.

Is there something I'm missing with my set up? Should I be adding the HTTP URL to my config file?

Thank you!

Edited by Shannon Kularathna