-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error connecting to github enterprise #30
Comments
Hey @lhayhurst thanks for the bug report! I'm not sure I'll have the time to debug that one, nor the test environment I'm afraid! I wonder what's happening there, it the URL is correct, the traces sure are confusing 🤔 |
No worries, thanks for the reply. I can try to isolate the issue "by hand" -- any pro tips on how to debug it? (For ex, can I pull the javascript code out, run it by hand, and try to isolate the issue -- my hunch is that this is a Github enterprise thing). |
Now that's a very good question! Developing gnome extensions is, hmm, fiddly at best. You can pull the repo locally like this and modify the code to print more information. The logs are visible using looking glass It might be something silly, it might be worth trying to print the request before it goes to the server, and trying to replay it with That's pretty much all I have! do ask if you have any more question, I'll try my best to answer what I can. |
Hi, I gave this a shot -- whenever I print the authUri, it prints out that it is a SoupURI instance, but doesn't actually print the url its trying to hit. I tried putting this in the fetchNotifications method:
after looking at the docs, but got the error message "this.authUri.soup_uri_to_string is not a function". Do you know off hand how to stringify the uri? I'll keep digging as well. |
Not off the top of my head, but I wonder if using this notation might work? Soup.URI.prototype.soup_uri_to_string.call(this.authUri); Like here |
Hi, I was able to solve this just by staring at code and reading docs. With github enterprise, the urls are different. This is what it should look like for github enterprise (
From this Stack Overflow: It is now working fine for me. I just hacked the thing locally, so, not great. In terms of applying this change to your master, I can think of several ways:
|
ha, amazing! I'll look into fixing it this week |
Hi, I'm connecting to github enterprise instance and am getting a "!" as the label on status bar. It appears to be hitting this line of code.
I'm getting this in my logs:
(empty response error, with error code ... 2?!).
I've verified that:
Github handle
is correctGithub token
is valid, and has the correct Notification scopeGithub Hostname
is correct, does not include "http[s]://", and has no path parameters.I'm on Ubuntu
20.04
.Cheers!
The text was updated successfully, but these errors were encountered: