wolakec / magento-api-xmlrpc Goto Github PK
View Code? Open in Web Editor NEWSOAP API wrapper for magento
SOAP API wrapper for magento
Hi,
I am trying to call this:
magento.salesOrderInvoice.list({
filters: [ {'store_id': '3' }]
},(err, res) => {
console.log('Error:', err);
console.log('Res:', res)
})
But I am getting an error back:
{ [Magento Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause', query was: SELECT `main_table`.`entity_id`, `main_table`.`order_id`, `main_table`.`increment_id`, `main_table`.`created_at`, `main_table`.`state`, `main_table`.`grand_total`, `main_table`.`order_currency_code` FROM `sales_flat_invoice` AS `main_table` WHERE (((`0` = '3')))]
I20170214-12:05:11.020(1)? code: 1,
I20170214-12:05:11.020(1)? faultCode: 1,
I20170214-12:05:11.021(1)? faultString: 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'0\' in \'where clause\', query was: SELECT `main_table`.`entity_id`, `main_table`.`order_id`, `main_table`.`increment_id`, `main_table`.`created_at`, `main_table`.`state`, `main_table`.`grand_total`, `main_table`.`order_currency_code` FROM `sales_flat_invoice` AS `main_table` WHERE (((`0` = \'3\')))',
I20170214-12:05:11.021(1)? original:
I20170214-12:05:11.021(1)? { message: 'XML-RPC fault: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'0\' in \'where clause\', query was: SELECT `main_table`.`entity_id`, `main_table`.`order_id`, `main_table`.`increment_id`, `main_table`.`created_at`, `main_table`.`state`, `main_table`.`grand_total`, `main_table`.`order_currency_code` FROM `sales_flat_invoice` AS `main_table` WHERE (((`0` = \'3\')))',
I20170214-12:05:11.021(1)? name: 'Error' },
I20170214-12:05:11.021(1)? name: 'Magento Error',
I20170214-12:05:11.021(1)? message: 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'0\' in \'where clause\', query was: SELECT `main_table`.`entity_id`, `main_table`.`order_id`, `main_table`.`increment_id`, `main_table`.`created_at`, `main_table`.`state`, `main_table`.`grand_total`, `main_table`.`order_currency_code` FROM `sales_flat_invoice` AS `main_table` WHERE (((`0` = \'3\')))' }
Am I using it wrong or is this a bug?
The [email protected] dependency seems unused and it leads to npm audit issues, since it references a vulnerable version of hoek.
I just removed it from package.json and all seems to be working fine.
Hi i'am not able to login , it is giving error response saying as follow.
"{ [Magento Error: An error occurred at login]
original: { message: 'Not Found', name: 'Error' },
name: 'Magento Error',
message: 'An error occurred at login' }"
code i have used for :
let magento = new MagentoObject({
host: result.host,
port: result.port,
path: '/api/xmlrpc/',
login: result.user_name,
pass: result.password
});
magento.login((error, sessionId) => {
if (error) {
console.error("GET:MAGENTO:CANNOT:CONNECT:ERROR:", error);
return callback("Unable to connect to magento admin");
}
magento.changeSession(sessionId);
console.info("GET:MAGENTO:CONNECTION:SUCCESS:INFO:Connection established successfully");
return callback(null, {magentoObject : magento, updateUrl : result.updateUrl, saveOrderUrl : result.saveOrderUrl, accessToken : result.accessToken, sessionId : sessionId});
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.