Github repository is not initialized.
ShivangRawat30 opened this issue · 5 comments
Bug description
When we open the quack ai extension we get an error Failed to fetch repository details. Make sure the repository exists and is public.
Minimal steps to reproduce the bug
- Open VS code.
- open a repository.
- open quack AI extension.
Error traceback
Error fetching repository details: AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: ClientRequest, …}
The ghRepo
is returning NULL, guidelines
are undefined, repoName
is empty, this
is also undefined.
Environment
OS - macOS
IDE - VSCode
Hey @frgfm Please check if it is valid issue, If it is then I would love to work on this.
Hi Shivang 👋
My main guess is that you opened the extension on a folder that wasn't a public repository right?
Hey, @frgfm I've changed the regular expression to get the repository details, but there is a new error, the fetchRepoGuidelines
function is calling the quack-ai backend and is returning status code 200 but response.data
is an empty array.
Hey there @ShivangRawat30 👋
Thanks, would you mind opening a PR with your regex modification? So that I can try to reproduce the behaviour
And about the second problem, it means there are no guidelines available yet on this repo. I'm soon gonna add automatic parsing (guidelines that won't be validated yet by maintainers)
Let me know if you have any other questions!