Skip to content

API endpoints returning empty objects #5952

@drewski3420

Description

@drewski3420

Pre-submission Checklist

  • I have searched existing issues and confirmed this has not already been reported
  • This is a bug report, not a question or configuration request

Memos Version

Version: 0.28.0 / Commit: 9bf648a

Environment Details

  • Deployment: Docker
  • Database: SQLite
  • Browser: N/A
  • Server OS: Ubuntu 24.04
  • Reverse proxy: nginx

Steps to Reproduce

  1. Attempt to connect to endpoints such as users:stats or users:batchGet
curl -X GET "http://XXX.XXX.XXX.XXX:PORT/api/v1/users:stats" \
-H "Authorization: Bearer memos_pat_XXXXX"  \
-H "Content-Type: application/json"

or

curl -X POST "http://XXX.XXX.XXX.XXX:PORT/api/v1/users:batchGet" \
-H "Authorization: Bearer memos_pat_XXXXX" \
-H "Content-Type: application/json" \
-d '{}'

Current Behavior

No error is produced, but the object returned is empty:

{"stats":[]}
{"users":[]}

Expected Behavior

Object should return uses/user stats

Logs

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions