You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call https://<app-name>.herokuapp.com/api/v3/entries with a valid Bearer token
See error in the response: {"status": 500, "message": "Database error"}
Expected behavior
The api call should not error, but instead return data that matches the query.
Your setup information
NightScout version: "version": "15.0.2"
Dexcom G7 from AAPS
Issue is sepecific to Heroku hosting, but it may also affect other hosting if the config vars are set as strings, and not numbers (when it's a number).
Describe the bug
If you set
"API3_MAX_LIMIT": "1000",
such as in Heroku config vars, your V3 API errors on every call.To Reproduce
Steps to reproduce the behavior:
"API3_MAX_LIMIT": "1000"
https://<app-name>.herokuapp.com/api/v2/authorization/request/<api-token>
https://<app-name>.herokuapp.com/api/v3/entries
with a valid Bearer tokenExpected behavior
The api call should not error, but instead return data that matches the query.
Your setup information
Additional context
Modifying `/lib/api3/generic/collection.js ln:70 onwards with...
might work, but I'm not a node/JS guy.
It appears that the code can't cope if the value is a string instead of a number.
The text was updated successfully, but these errors were encountered: