Skip to content

API returning 500 Internal Server Error for /fetch/* endpoints #60

@PiiSmith

Description

@PiiSmith

Description

The API is returning 500 Internal Server Error for data fetch endpoints (steps, nutrition, etc.) while the login endpoint works correctly.

Steps to reproduce

  1. Login via POST /api/v2/login - Returns 201 ✅
  2. Request data via POST /api/v2/fetch/steps with valid Bearer token - Returns 500 ❌

Observed behavior

  • Login: Works (status 201)
  • /fetch/steps: 500 Internal Server Error
  • /fetch/nutrition: 404 or 500
  • Other /fetch/* endpoints: Also returning 500

Expected behavior

Data endpoints should return health data for authenticated users.

Environment

Additional context

The server appears to be running but data retrieval is broken. This may be related to the recent MongoDB migration mentioned in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions