Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken (possibly for private repos on non-standard port ?) #27

Open
Gaibhne opened this issue Mar 15, 2023 · 5 comments
Open

Broken (possibly for private repos on non-standard port ?) #27

Gaibhne opened this issue Mar 15, 2023 · 5 comments

Comments

@Gaibhne
Copy link

Gaibhne commented Mar 15, 2023

I added a host and API key per instructions, and it correctly loaded a list of my snippets in our private GitLab instance. But upon attempting to download or view snippets, I get a lack of token for <our instance> error popup, despite it using my token to download the snippet list. Going to the URL it shows in the error in a webbrowser works fine, so no idea what is going wrong.

Our instance runs on port 10080, which some webbrowsers consider 'unsafe', and it's possible the issue is related to that, but the error popup indicates no further detail.

I have attempted to remove and readd our host as mentioned in other issues to no avail.

@JennieJi
Copy link
Owner

Hi @Gaibhne, what's your Gitlab snippets APIs? You may find them in your Gitlab help page.

@Gaibhne
Copy link
Author

Gaibhne commented Mar 22, 2023

I am not sure what you mean by that. The Gitlab help page (http://ourserver:10080/help) is a generic help page that does not mention Snippets at all, and only has generic info about the REST and GraphQL APIs, none of it including our server address. Maybe I misunderstood you ?

After submitting my initial issue, I noticed there hadn't been a release in over two years and figured the extension was dead, although now I see that there are still commits - I don't quite understand if and how those would find their ways into my VSCode. I removed the extension, figuring it was abandoned, and when I went to reinstall it just now, it was no longer listed in the VSCode-internal extension market place, so I don't know how I can help debug.

For what it's worth, our GitLab instance runs on an address such as http://10.0.0.1:10080/ and my profile page would be at http://10.0.0.1:10080/-/profile/preferences

@JennieJi
Copy link
Owner

Hi @Gaibhne , I found the error message you encountered above are caused by some buggy code. The problem is fixed in the recent new versions. Let me know if your issue is still there.

@Gaibhne
Copy link
Author

Gaibhne commented Jun 1, 2023

We have since changed to regular domain names with default ports, so unfortunately, I can no longer help test this, and like I said, there have been no releases since 2020, so I don't understand how the fix / new versions would make it to my computer anyways ?

@JennieJi
Copy link
Owner

JennieJi commented Jun 2, 2023

Hi @Gaibhne , VSCode extension release history is located here: https://marketplace.visualstudio.com/items?itemName=jyee721.gitlab-snippets

The 2020 release info you’ve seen is posted on the GitHub repository, they are not connected to each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants