Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HubSpotOAuthApi Authorize and Refresh Methods Return Null Token with Valid Input #102

Open
mdbrooks48 opened this issue Feb 23, 2021 · 0 comments

Comments

@mdbrooks48
Copy link

Describe the bug
The HubSpotOAuthApi Authorize and Refresh methods return null with valid authorization codes and refresh token values.
The root cause is that RestSharp is returning UnsupportedMediaType (415) response code.

Repro Steps
Steps to reproduce the behavior:

  1. Get a valid Authorization code or Refresh Token (via Postman).
  2. Create an instance of HubSpotApi with valid ClientId, Client Secret, and App Ids for a HubSpot Application.
  3. Call Authorize with the Authorization Code or Refresh with a valid Refresh Token (or a new instance of HubSpotToken with a RefreshToken property with a valid Refresh Token).

Expected behavior
A valid HubSpotToken with the RefreshToken and AccessToken properties populated

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

No branches or pull requests

1 participant