Skip to content

Can't create a customer because I receive an Error "Error: AuthResponse is not JSON". #135

Open
@Isaacmeedinaa

Description

This is my code:

const response = await intuitOAuthClient.makeApiCall({
      url: `${BASE_URL}/v3/company/${companyNumber}/query?query=select * from Customer&minorversion=65`,
      method: "GET",
      headers: {
        Authorization: `Bearer ${intuitOAuthClient.token.access_token}`,
        "Content-Type": "application/json",
        Accepts: "application/json",
      }
});

I am making a basic API call to get all the customers in my Quickbooks database.

I successfully authenticate with the OAuth 2.0 Client and get the access and refresh tokens.

This is the error I receive:
Error: AuthResponse is not JSON

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions