RADAR-base / RADAR-PushEndpoint

A gateway to expose endpoints for Push based services to POST data to RADAR-Base platform.
Apache License 2.0
2 stars 2 forks source link

Error when pulling blood pressure data #62

Open mpgxvii opened 9 months ago

mpgxvii commented 9 months ago

Request fails when trying to backfill blood pressure data. Error logs:

Last messages accounting for this alert:
2024-01-23T15:40:01.772Z  ::  stdout  ::  [2024-01-23 15:40:01,771] WARN  - Error making request https://healthapi.garmin.com/wellness-api/rest/backfill/bloodPressures?summaryStartTimeInSeconds=1700784000&summaryEndTimeInSeconds=1700819304. (BackfillService.kt:126)
[2024-01-23 15:40:01,771] WARN  - Error making request https://healthapi.garmin.com/wellness-api/rest/backfill/bloodPressures?summaryStartTimeInSeconds=1700784000&summaryEndTimeInSeconds=1700819304. (BackfillService.kt:126)
Response{protocol=h2, code=400, message=, url=https://healthapi.garmin.com/wellness-api/rest/backfill/bloodPressures?summaryStartTimeInSeconds=1706745600&summaryEndTimeInSeconds=1706798995} (GarminRequestGenerator.kt:156)
yatharthranjan commented 3 weeks ago

Yes, the garmin rep contacted us for this. It was due to disabled Backfill endpoint on the Garmin dev portal (not sure how it got disabled). Also, there is a message in the response (at least I can see in the garmin portal) but the logs here don't show any message. I will add a couple of issues to fix that and to ensure this is handled better in the future.

mpgxvii commented 3 weeks ago

Oh okay thank you. Yes I thought it was an issue with the base URL so I added this fix: https://github.com/RADAR-base/RADAR-PushEndpoint/pull/63 and didn't realise it was disabled.