amazingmarvin / MarvinAPI

API documentation for the Amazing Marvin productivity tool
https://amazingmarvin.com/
92 stars 0 forks source link

[BUG] Query for children of root on localhost yields empty set #56

Open AlanMcBee opened 1 month ago

AlanMcBee commented 1 month ago

Statement of purpose

I do solemnly swear (or affirm) that this is an API bug, and not a Marvin bug. For Marvin bugs I would use the in-app "?→Contact Support" feature

Describe the bug When querying for all children of the root, I get the expected results when I query the cloud, but no results when I query the local server.

Endpoint(s) in question /api/children?parentId=root

To Reproduce I used Postman, with two different environment settings to eliminate the possibility that I'm invoking the call differently. I could share the Postman collection and environment if you want, but assuming you just want some code that does it, here's how Postman generated a cURL command to invoke the failing method as well as the successful invocation.

FAILS:

curl --location 'http://localhost:12082/api/children?parentId=root' \
--header 'X-API-Token: ******'

SUCCEEDS:

curl --location 'https://serv.amazingmarvin.com/api/children?parentId=root' \
--header 'X-API-Token: ******'

Expected behavior A JSON object with 12 top-level categories (representing my data in AM), which is what I get when I call the cloud version of the API.

What I actually get is:

Response Headers
  Content-Type: application/json
  Date: Fri, 09 Aug 2024 19:53:34 GMT
  Connection: keep-alive
  Keep-Alive: timeout=5
  Transfer-Encoding: chunked
Response Body
  []

HTTP client: