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

Can't send "query" request - 400 error (SELECT * FROM ... WHERE DisplayName LIKE ...) #129

Open
Twisterking opened this issue May 30, 2022 · 2 comments

Comments

@Twisterking
Copy link

I have the following query:

  const selectStatement = `SELECT * FROM Customer WHERE DisplayName LIKE '%MFM 58%'`; // does NOT work!
  // const selectStatement = 'SELECT * FROM Customer'; // works just fine! :)
  const resp = await oauthClient.makeApiCall({
    url: `https://sandbox-quickbooks.api.intuit.com/v3/company/${realmId}/query?query=${selectStatement}&minorversion=65`,
    method: 'GET'
  });

This does NOT work!

I always get a 400 Bad Request - but everything is just fine! NO problems with the auth, because the following selectStatement works just fine: selectStatement = 'SELECT * FROM Customer' ... so what gives? I don't see what is wrong with my call!

@Twisterking
Copy link
Author

Is anyone taking care of this repo here? This is still not working!

@Twisterking
Copy link
Author

bump ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants