Comments (7)
@mitar please provide a fresh log file and the git remote -vv
of the problem repositories so we can troubleshoot further.
from desktop.
Hm, because they are private repos, I am not completely sure I want to share info publicly?
from desktop.
@mitar you can send sensitive stuff through the email address in my profile, if that helps
from desktop.
I can maybe just change URIs, if this is OK with you? Or do you have to know which repositories are involved?
from desktop.
@mitar the URLs are somewhat important, but we can try them being renamed as long as they match the structure of the real URLs
from desktop.
Log when adding a private repo:
2018-01-16T06:45:55.077Z - warn: [ui] fetchRepository: 'private/example' returned a 404
2018-01-16T06:46:24.033Z - info: [ui] [AppStore] adding repository at /home/user/example to store
2018-01-16T06:46:24.684Z - warn: [ui] fetchRepository: 'private/example' returned a 404
2018-01-16T06:46:24.747Z - warn: [ui] Unable to fetch issues for private/example
Error: Cannot get issues for a repository that hasn't been inserted into the database!
at Object.n [as fatalError] (/home/user/webpack:/external "path":1:1)
at t.IssuesStore.getLatestUpdatedAt (/home/user/webpack:/app/src/lib/stores/issues-store.ts:29:24)
at t.IssuesStore.fetchIssues (/home/user/webpack:/app/src/lib/stores/issues-store.ts:66:5)
at oe._updateIssues (/home/user/webpack:/app/src/lib/stores/app-store.ts:830:6)
at oe._selectRepository (/home/user/webpack:/app/src/lib/stores/app-store.ts:799:5)
at t.Dispatcher.selectRepository (/home/user/webpack:/app/src/lib/dispatcher/dispatcher.ts:167:4)
at addRepository (/home/user/webpack:/app/src/ui/add-repository/add-existing-repository.tsx:185:3)
at <anonymous>
2018-01-16T06:46:25.283Z - warn: [ui] fetchRepository: 'private/example' returned a 404
2018-01-16T06:46:26.903Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.923s)
$ git remote -vv
origin [email protected]:private/example.git (fetch)
origin [email protected]:private/example.git (push)
from desktop.
I'm going to close this out because I don't have the bandwidth currently to investigate what this might have been - apologies @mitar!
My best guess is related to this line:
2018-01-16T06:46:25.283Z - warn: [ui] fetchRepository: 'private/example' returned a 404
This is our lookup for the repository using the GitHub API, and it is most likely failing in this way as no user token is sent by the app (this should be created on login and persisted to credential storage) and so the API doesn't respond to a request for a private repository (and the app wouldn't consider it a GitHub repository).
We have some better tracing in the app these days to detect when it can't find a token, and if you have SSH authentication configured correctly this is probably the only time you'd notice this issue.
from desktop.
Related Issues (20)
- git rebase does not work HOT 2
- Authentication Error on Push Origin HOT 2
- [BUG] Error "The name org.freedesktop.secrets was not provided by any .service files" while signing in for Github.com HOT 4
- Unable to sign in HOT 1
- Icons appear corrupted in WSL with Ubuntu 22.04.3 LTS HOT 3
- unable to fetch origin
- Stuck on "You are being redirected to the authorized application" page HOT 2
- Cannot Fetch origin on repository HOT 2
- Error when sign in HOT 2
- ChromeOS - Cannot Authenticate HOT 2
- Authentication failed github desktop HOT 1
- Github Desktop does not work on Wayland with multiple GPUs HOT 4
- GitHub Desktop "The name is not activatable" on Arch Linux HOT 12
- BOBO HOT 1
- Can't login
- Starting github-desktop crashes x-session on ubuntu HOT 5
- Cannot sign in on Kali Linux HOT 2
- Authentication failed for a repository with restricted permission HOT 7
- webauth failed to share secrets with github desktop HOT 6
- Github desktop is very slow while accessing the pull and push options HOT 2
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 desktop.