Comments (4)
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.
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.
I would delete node_modules/node-quickbooks and then npm install node-quickbooks --save
again and see what you get
from node-quickbooks.
Thank you for your time! That did it. My bad, I should have updated first.
from node-quickbooks.
Related Issues (20)
- TypeError: Cannot convert undefined or null to object
- How to filter by custom field? HOT 1
- cannot find method to delete a customer HOT 1
- Problem refreshing the token
- Readme Link to API Docs is Incorrect
- Refresh token consistently results in "invalid_grant" qb.refreshUsingToken(token)
- Find methods can't have multiple ORDERBY DESC clauses HOT 1
- `Buffer` constructors are deprecated.
- Connect Button doesn't work HOT 3
- Publish new version HOT 1
- No Support Payment APIs HOT 1
- the client returns an empty error and no data to the callback even though the find request returns data
- Create a Budget
- [Question] How do you send query parameters in a `find` call? HOT 1
- getPreferences / findPreferenceses Not Retrieving All Results HOT 1
- Upgrade deprecated uuid version
- xmldom Critical Vulnerability
- Status of repo's maintenance?
- Support for webhooks?
- Repository doesn't appear in google search
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-quickbooks.