← Back to Dashboard

Request Trace

Trace ID
trace_mnd04dmq_88r8qab0
Log Entries
25
Errors
0
Total Duration
1964ms
Request Timeline
09:44:29.126 AM
whoop-webhook info
Request started
POST /whoop-webhook
Metadata
{
  "headers": {
    "user-agent": "okhttp/4.9.3",
    "content-type": "application/json; charset=utf-8",
    "content-length": "192",
    "x-forwarded-for": "44.230.39.175,44.230.39.175, 3.2.55.51"
  },
  "http_path": "/whoop-webhook",
  "http_method": "POST"
}
09:44:29.126 AM
whoop-webhook info
Received Whoop webhook
POST /whoop-webhook
Metadata
{
  "record_id": "d0ff57c6-d370-460c-8f84-13c98923afe7",
  "event_type": "recovery.updated",
  "whoop_user_id": 27746328,
  "whoop_trace_id": "Mjc3NDYzMjgtZDBmZjU3YzYtZDM3MC00NjBjLThmODQtMTNjOTg5MjNhZmU3LUNSRUFURS0xNzc0ODYzODY3Njg3"
}
09:44:29.127 AM
whoop-webhook debug
select on whoop_tokens
POST /whoop-webhook
Metadata
{
  "table": "whoop_tokens",
  "operation": "select"
}
09:44:29.399 AM
whoop-webhook debug
select on connected_devices
POST /whoop-webhook
Metadata
{
  "table": "connected_devices",
  "operation": "select"
}
09:44:29.669 AM
whoop-webhook info
Calling edge_function: sync-whoop
POST /whoop-webhook
Metadata
{
  "service": "edge_function",
  "endpoint": "sync-whoop",
  "device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
  "sync_type": "recovery"
}
09:44:29.678 AM
whoop-webhook info
Request completed with status 200
Duration: 1197msHTTP 200POST /whoop-webhook
Metadata
{
  "duration_ms": 1197,
  "content_type": null
}
09:44:29.875 AM
whoop-webhook info
Processing webhook - triggering sync
POST /whoop-webhook
Metadata
{
  "device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
  "record_id": "d0ff57c6-d370-460c-8f84-13c98923afe7",
  "sync_type": "recovery"
}
09:44:29.878 AM
sync-whoop info
Starting Whoop sync
POST /sync-whoop
Metadata
{
  "device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
  "sync_type": "recovery"
}
09:44:29.891 AM
sync-whoop debug
select on connected_devices
POST /sync-whoop
Metadata
{
  "table": "connected_devices",
  "operation": "select"
}
09:44:30.007 AM
sync-whoop info
Refreshing tokens
POST /sync-whoop
09:44:30.066 AM
sync-whoop info
Request started
POST /sync-whoop
Metadata
{
  "headers": {
    "accept": "*/*",
    "user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
    "x-trace-id": "trace_mnd04dmq_88r8qab0",
    "content-type": "application/json",
    "content-length": "174",
    "x-forwarded-for": "44.249.79.120,44.249.79.120, 3.2.55.51"
  },
  "http_path": "/sync-whoop",
  "http_method": "POST"
}
09:44:30.131 AM
sync-whoop info
Starting recovery sync
POST /sync-whoop
09:44:30.131 AM
sync-whoop info
Sync parameters resolved
POST /sync-whoop
Metadata
{
  "end_date": "2026-03-30",
  "start_date": "2026-03-30",
  "sync_types": [
    "recovery"
  ]
}
09:44:30.138 AM
sync-whoop info
Calling whoop: /cycle
POST /sync-whoop
Metadata
{
  "service": "whoop",
  "endpoint": "/cycle"
}
09:44:30.274 AM
sync-whoop info
whoop responded: 200
POST /sync-whoop
Metadata
{
  "service": "whoop",
  "success": true,
  "endpoint": "/cycle?start=2026-03-30T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
  "duration_ms": 138,
  "response_status": 200
}
09:44:30.322 AM
sync-whoop info
Calling whoop: /recovery
POST /sync-whoop
Metadata
{
  "service": "whoop",
  "endpoint": "/recovery"
}
09:44:30.329 AM
sync-whoop info
Token refresh successful
POST /sync-whoop
Metadata
{
  "expires_at": "2026-03-30T10:00:10.902+00:00",
  "token_type": "[REDACTED]"
}
09:44:30.332 AM
sync-whoop info
whoop responded: 200
POST /sync-whoop
Metadata
{
  "service": "whoop",
  "success": true,
  "endpoint": "/recovery?start=2026-03-30T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
  "duration_ms": 55,
  "response_status": 200
}
09:44:30.546 AM
sync-whoop info
Fetched recovery data from Whoop API
POST /sync-whoop
Metadata
{
  "cycles_count": 2,
  "recoveries_count": 1
}
09:44:30.669 AM
sync-whoop warn
Overwriting 1 existing recovery records
POST /sync-whoop
Metadata
{
  "device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
  "total_records": 2,
  "existing_dates": [
    "2026-03-28"
  ]
}
09:44:30.669 AM
sync-whoop debug
upsert on daily_summary
POST /sync-whoop
Metadata
{
  "count": 2,
  "table": "daily_summary",
  "operation": "upsert"
}
09:44:30.821 AM
sync-whoop debug
update on connected_devices
POST /sync-whoop
Metadata
{
  "table": "connected_devices",
  "operation": "update"
}
09:44:31.011 AM
sync-whoop info
Completed recovery sync
POST /sync-whoop
Metadata
{
  "result": {
    "success": true,
    "sync_type": "recovery",
    "records_synced": 2
  }
}
09:44:31.053 AM
sync-whoop info
Request completed with status 200
Duration: 1201msHTTP 200POST /sync-whoop
Metadata
{
  "duration_ms": 1201,
  "content_type": "application/json"
}
09:44:31.090 AM
sync-whoop info
Whoop sync completed
POST /sync-whoop
Metadata
{
  "failed_syncs": 0,
  "total_records": 2,
  "successful_syncs": 1
}