-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Sourcegraph] Self-hosted sourcegraph search doesn't work #1126
Comments
@dleen What version of Sourcegraph is your self-hosted Sourcegraph instance? |
Good question, sorry I should have included it: |
Yes, my sourcegraph instance is only available via a VPN. But I made sure the VPN was connected, I can access the instance fine via browser, and via curl. I think I'll check out the extension and run it locally with some debug statements to see what's happening... |
I did some brief searches regarding this. Threads like this one indicate that we might need to introduce additional configuration to connect to VPNs, but I'm not terribly familiar with VPNs in general so I'm not too sure where to start. If you could share a more complete error message, or some details about your VPN setup, that might be helpful! |
I got around to looking at this.
Unfortunately that error message is the entire message. Nothing else shows up. I don't think the VPN setup is the problem because I am able to reach the instance using all other clients just fine e.g. the sourcegraph curl instructions work. I installed the extension locally but it didn't give any extra error details. The error said
I took a look at the library and saw that it was a fork because the original didn't support
which actually worked and returned results from the server. This ran into its own problem where it never stopped (requesting?) returning results until it hit a memory limit:
Maybe that's an issue with the library being different from the fork and some code needs updating to stop returning results? But it was good to make some progress. I'm not sure why the http2 library didn't work or what the |
Interesting, I tried I saw the memory limit issue as well and I think I've fixed it with bobheadxi/raycast-sourcegraph@0b66d0a |
The update will be included in #1228 ! Thank you for looking into this 🙏 |
@dleen did the new update resolve your issue? |
Yep! Works perfectly, thanks!! |
Extension – Sourcegraph
Author: @bobheadxi
Description
Searching using self-hosted url doesn't work.
Error:
Steps To Reproduce
https://sourcegraph.mydomain.net
, enter API keyThe current behavior
The search doesn't work...
The expected behavior
The search results are shown
Raycast version
Version: 1.30.3
The text was updated successfully, but these errors were encountered: