-
-
Notifications
You must be signed in to change notification settings - Fork 23
Request URL seems to be wrong. #77
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
Comments
Hey @huzisuke , The reason we assumed GitLab is hosted on a subdomain is because GitLab recommends you to host your git instance on a subdomain rather than on a relative url. As you can see in the code we've hardcoded the API url to be in the form of However, one possible solution, I came up with is to extract the relative url from the window object provided by GitLab. Could you help me out and post the Thank you for reporting the issue and look forward to solving the problem |
Hi @tavyandy97 I didn't know the GitLab recommendation because the environment was built by my colleague. Anyway, I post window.gon.relative_url_root to the console and it returns '/gitlab'. |
Hey @huzisuke , Thanks a lot again for the support! Let me know if you face any issues in building the extension (Please take reference from |
Hi @tavyandy97 , Unfortunately, I could build but it show errors.
I'm happy for your appreciation. |
Hi @huzisuke , For now I've tried to push a fix for the same by extracting the relative URL by splitting the current url by repository parent. Although I've tested the fix and ideally should work, I'd appreciate it if you could verify it? tavyandy97-relativeUrl Sorry for the to and fro and thanks a lot once again. |
Thanks a lot for new version! Sometimes I found 404 error on the developer tool.
Case1 or case2 is found on every repositories. I couldn't find where these error was triggered. I'm looking forward to your next version. I noticed that misunderstanding of GROUP and PROJECT. |
Hi @huzisuke , Thank you |
Hi @tavyandy97 , This has one 404 error of requesting DOMAIN/api/v4/... I inserted 'gitlab' into axios.js line 6, and this worked perfect! I consider this is the last one. |
Hi @tavyandy97 , I changed axious.js line8 like below, and it worked fine. However I don't know this is the best solution. |
Thank you for developing great extension.
I download it as chrome extension but it seems not to work.
The side bar box is keep loading.
Checking on the developer tool, it shows 404.
Our gitlab URL is "http://DOMAIN/gitlab/REPOSITORY/..." but the requested URL is "http://DOMAIN/api/v4/...".
The word "gitlab" seems to be excluded.
As I insert "gitlab" between DOMAIN and api, chrome returns json.
Does someone know how to fix it?
The text was updated successfully, but these errors were encountered: