Skip to content

Conversation

@rajeshgupta723
Copy link
Collaborator

The makeApiCall method was incorrectly using spread operator on authHeader() which returns a string, not an object. This caused the headers object to be populated with numeric properties for each character of the base64 string, resulting in malformed HTTP headers and API call failures.

Fixed by properly setting the Authorization header with Bearer token: Authorization: Bearer ${this.getToken().access_token}

This matches the original 4.2.0 implementation and is consistent with other OAuth methods like getUserInfo().

Resolves issue reported by users after upgrading to 4.2.1 where API calls started failing due to incorrect header formatting.

The makeApiCall method was incorrectly using spread operator on authHeader()
which returns a string, not an object. This caused the headers object to be
populated with numeric properties for each character of the base64 string,
resulting in malformed HTTP headers and API call failures.

Fixed by properly setting the Authorization header with Bearer token:
Authorization: `Bearer ${this.getToken().access_token}`

This matches the original 4.2.0 implementation and is consistent with other
OAuth methods like getUserInfo().

Resolves issue reported by users after upgrading to 4.2.1 where API calls
started failing due to incorrect header formatting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants