Code Monkey home page Code Monkey logo

Comments (7)

shiftkey avatar shiftkey commented on July 17, 2024

@mitar please provide a fresh log file and the git remote -vv of the problem repositories so we can troubleshoot further.

from desktop.

mitar avatar mitar commented on July 17, 2024

Hm, because they are private repos, I am not completely sure I want to share info publicly?

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

@mitar you can send sensitive stuff through the email address in my profile, if that helps

from desktop.

mitar avatar mitar commented on July 17, 2024

I can maybe just change URIs, if this is OK with you? Or do you have to know which repositories are involved?

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

@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.

mitar avatar mitar commented on July 17, 2024

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.

shiftkey avatar shiftkey commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.