GithubHelp home page GithubHelp logo

Comments (4)

mcohen01 avatar mcohen01 commented on June 19, 2024
qbo.findAccounts([
  {
    field: 'Name',
    value: '%Prepaid Inventory',
    operator: 'LIKE'
  }
], function(e, data) {
  console.log(JSON.stringify(data, null,2))
  done()
})

doesn't give me any errors.

Regarding L1925 of index.js, url = url.replace(/%/g, '%25') will greedily replace all % characters in the string with %25.

Sorry, I'm not sure what problem you're running into here.

from node-quickbooks.

Emperoni avatar Emperoni commented on June 19, 2024

Thank you so much for the reply. Let me explain my issue.
If I submit '%Prepaid Inventory%' (with two % signs) the API somehow replaces characters and submits:
uri: 'https://quickbooks.api.intuit.com/v3/company/409491146/query?query=select%2520*%2520from%2520account%2520where%2520Name%2520LIKE%2520%2527%2525Prepaid%2520Inventory%25%2527',
which is obviously messed up and returns:
Message: 'Error parsing query',
Detail: 'QueryParserError: Invalid content. Lexical error at line 1, column 7. Encountered: "%" (37), after : ""',

what happened above, among other things, is that each space is replaced with %20, and then %20 is replaced with %2520.

I don't think that this is your code doing it. Does this mean that I cannot submit a LIKE with two % signs?

Thanks!

from node-quickbooks.

mcohen01 avatar mcohen01 commented on June 19, 2024

I would delete node_modules/node-quickbooks and then npm install node-quickbooks --save again and see what you get

from node-quickbooks.

Emperoni avatar Emperoni commented on June 19, 2024

Thank you for your time! That did it. My bad, I should have updated first.

from node-quickbooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.