Comments (4)
Thanks for creating this issue.
I think your problem could be solved by modifying following line:
Line 91 in 79d6755
If you don't use SSL, your API-request URL will look like this:
https://myservername.com/gitea:PORT
So if you specified a port you can check if it works once clearing out the port field.
Otherwise please reply and I will try to fix it asap.
from gitea-vscode.
Thanks for taking the time to look into this.
Alright, so that code helped a lot: The problem for me was, that I specified my user account as the repo owner instead of the owning organisation. Since the site is on SSL all was fine once I changed that. I am delighted by the now working extension; this is going to simplify things quite a bit.
It would have helped if the extension had somehow logged the request URL in case of an error or included it in the error message.
Yet, the line you are citing for non-SSL will probably not work with such a setup (i.e. installed to a sub-path) as the colon will still get appended to the path. You will get something like http://myserver.com/gitea:/api/v1/…
. I am therefore leaving this issue open and leave the decision whether to close it as an irrelevant edge-case to you.
from gitea-vscode.
It's everything else than irrelevant :) Thanks for opening and I'm glad I could help.
- I would suggest throwing an error with following message: "An HTTP error occoured. Please check your repository url."
- Furthermore to fix the case when using an subpath I would try to include a setting for the subpath, or just let the user enter his repository url all at once so that there are no complications anymore with the port setting.
What do you think?
from gitea-vscode.
I am glad you see it that way. To reply to your suggestions:
-
It would have helped me a lot with my problem if the actual URL that caused the failure had been displayed somewhere, possibly along with an HTTP status code, whether in the VSC error popup or on the command line log (what is printed to the underlying terminal if you run VSC with
code --verbose
). -
And I think I would opt for an additional setting for a "URL path to Gitea" or so as I think it is less than obvious if you have to add it to the domain name. After all, it is not a part of the domain name.
Just my 2 cents. Hope it helps a bit.
from gitea-vscode.
Related Issues (20)
- HTTP Error v1.0.1 HOT 6
- Issue missing information in tree view HOT 1
- Request for Roadmap HOT 2
- Introduce baseurl for Gitea instance HOT 7
- Extension not visible in open-vsx.org HOT 1
- Error occoured. Error: Request failed with status code 401 HOT 9
- Errors when Gitea on localhost HOT 1
- [Bug] Element with id 72 is already registered HOT 9
- [Feature Request] Separate config file for tokens HOT 6
- add context menu on editor line to copy/open web-UI url of a file / line
- Assignee shown as [object Object] HOT 3
- Feature Request: Allow multiple repos HOT 4
- `npm install` fails with current vscode version HOT 1
- Feature Request: Support RemoteSourceProvider HOT 2
- INVALID tree item, invalid id HOT 1
- Sort issues by tags or assignees
- Feature Request: gitea settings on workspace json HOT 2
- Feature Request: Render Checkboxes for list items starting with square brackets HOT 1
- Error: AxiosError: Request failed with status code 400 HOT 2
- Generic 404 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitea-vscode.