daytonaio / devcontainer-generator

devcontainer.ai - AI generated standardized dev environments
https://devcontainer.ai/
Apache License 2.0
15 stars 12 forks source link

Trailing Slash in GitHub URL Returns 404 #15

Closed nkkko closed 1 month ago

nkkko commented 1 month ago

Describe the bug When a GitHub URL with a trailing slash is input into the application, it results in a 404 error.

To Reproduce Steps to reproduce the behavior:

  1. Go to the application's URL input field.
  2. Enter a GitHub URL with a trailing slash (e.g., https://github.com/daytonaio/daytona/).
  3. Click on "Generate devcontainer.json".
  4. Observe the 404 error.

Expected behavior The application should properly handle URLs with or without a trailing slash and generate the devcontainer.json without returning a 404 error.

Additional context Removing trailing slashes from the URL before processing it should resolve the issue.

nkkko commented 1 month ago

/bounty $20

algora-pbc[bot] commented 1 month ago

💎 $20 bounty • Daytona

Steps to solve:

  1. Start working: Comment /attempt #15 with your implementation plan
  2. Submit work: Create a pull request including /claim #15 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Please respect others by working on PRs that you are allowed to submit attempts to.

e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.

If you can not submit an attempt, you will not receive your payout.

Thank you for contributing to daytonaio/devcontainer-generator!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @Dhanus3133 #29
algora-pbc[bot] commented 1 month ago

💡 @Dhanus3133 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 1 month ago

🎉🎈 @Dhanus3133 has been awarded $20! 🎈🎊