Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 API Endpoint Returns 500 Internal Server Error (/api/v2/issues) #10

Open
belloibrahv opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@belloibrahv
Copy link

🔍 Issue Summary

The newly implemented V2 API endpoint (/api/v2/issues) is currently returning a 500 Internal Server Error, preventing the successful migration from the legacy endpoint. This issue was discovered during the implementation of updated Hugo shortcodes for the contributor grid system.

🐛 Current Behavior

When accessing the V2 API endpoint, the server responds with a 500 Internal Server Error:

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Oct 19 22:25:41 UTC 2024
There was an unexpected error (type=Internal Server Error, status=500).

✅ Expected Behavior

The endpoint should return a JSON response containing the issues data, similar to the current working endpoint (/api/hacktoberfest-issues).

🔄 Steps to Reproduce

  1. Access the V2 API endpoint directly:
    GET https://hedera-issues.koyeb.app/api/v2/issues
    
  2. Observe the 500 Internal Server Error response

🔍 Technical Details

Endpoint Information

Code vs. Production Mismatch

  • The endpoint is properly defined in the codebase but fails in the production environment
  • The implementation exists in ApiEndpoint.java but appears to have deployment or configuration issues

📝 Additional Context

  • This issue was discovered during the implementation of updated Hugo shortcodes (PR #17)
  • The legacy endpoint (/api/hacktoberfest-issues) continues to function correctly
  • This blocking issue prevents the full migration to the V2 API

🔧 Possible Investigation Points

  1. Server logs during endpoint access
  2. Configuration differences between development and production
  3. Deployment pipeline verification
  4. Error handling implementation in ApiEndpoint.java

📎 Related Links

Environment

  • Production URL: hedera-issues.koyeb.app
  • Endpoint Version: V2
  • Date Reported: October 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant