Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FitBit Subscriptions API: create subscription endpoint returns "Error: read ECONNRESET"

ANSWERED
I am trying to create a subscription by sending the following request:
 

But I keep getting the following error:

Error: read ECONNRESET

Network Request Headers

content-length: 10000000

X-Fitbit-Subscriber-Id: fitbit-subscription-handler

Authorization: Bearer <valid_access_token>

User-Agent: PostmanRuntime/7.30.0

Accept: */*

Cache-Control: no-cache

Postman-Token: <valid_postman_token>

Host: api.fitbit.com Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

According to Fitbit's official documentation, the `content-length` header is required as shown in the image:

 

a.png

 

Simply removing this required header fixes the issue.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

According to Fitbit's official documentation, the `content-length` header is required as shown in the image:

 

a.png

 

Simply removing this required header fixes the issue.

Best Answer
0 Votes