iiitl / iiitl/Opensource_Compass

[BUG] Setup Guide fails with 500 Internal Server Error due to undefined repository owner

Open
#50 2 comments 0 reactions 1 assignee Claimed by @ApoorvTripathi6388 View on GitHub
accepted-15 intermediate
Dominant language
TypeScript
Stars
0
Forks
16
PR merge metrics
No merged PRs in 30d

Description

The "Setup Guide" feature fails to generate instructions for certain repositories. The frontend is incorrectly passing the string undefined as the repository owner in the API request. This causes the github-service to attempt a fetch from a non-existent path, resulting in a 500 error, which subsequently causes the core_service and ai_service to fail.

Steps to Reproduce
*Navigate to the Recommendations page.
*Select a repository (e.g., free-programming-books).
*Click on the Setup button.
*Observe the "Failed to generate setup guide" error message.

The "View on github" link in the Recommendations page is also broken.

Image

Service Logs (Error Confirmation):
As seen in the attached screenshot, the github-service receives a malformed request where the repository owner is undefined. This triggers a 500 response.

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.