GithubHelp home page GithubHelp logo

magento-api-xmlrpc's People

Contributors

bangerkuwranger avatar wolakec avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

magento-api-xmlrpc's Issues

Not able to login using the magento-api-xmlrpc in Magento 2 but works with the magento 1.9 .

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});
});

Filters not working

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?

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.