OpenElements / good-first-issue-provider

A web services that caches requests to GitHub and provides metadata of issues
1 stars 8 forks source link

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

Open belloibrahv opened 3 weeks ago

belloibrahv commented 3 weeks ago

🔍 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

📝 Additional Context

🔧 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