Git Product home page Git Product logo

Comments (6)

rybodiddly avatar rybodiddly commented on June 16, 2024

It means that the posting failed. it's attempting to parse the ad id from the response which is actually an api error instead of a successful response. So it cant find what its looking for and returns none. Lots of updates have been committed over the last little while. So make sure you have the newest version downloaded. The newest version will post any kijiji api error to the console window. Would be helpful to have that if you're getting one. Also, it would be helpful to know what you're trying to post. If you look at the server.py file, there is a debugMode=False variable. If you set this to true, it will print the final ad payload to the console instead of sending it to kijiji (after editing server.py, server must be restarted if running). It would be helpful to know what's being sent, and the api error if you're getting one. That way I can test and see if I can replicate the issue. you can email it to me if you would prefer not to post it publicly. email available on my github profile page. Also, make sure you don't have a duplicate ad etc. already on your account.

from kijiji-reposter.

Connor2hd avatar Connor2hd commented on June 16, 2024

Thanks for getting back to me @rybodiddly .

Here is the ad payload from debug mode:

<?xml version="1.0" encoding="utf-8"?> <ad:ad xmlns:types="http://www.ebayclassifiedsgroup.com/schema/types/v1" xmlns:cat="http://www.ebayclassifiedsgroup.com/schema/category/v1" xmlns:loc="http://www.ebayclassifiedsgroup.com/schema/location/v1" xmlns:ad="http://www.ebayclassifiedsgroup.com/schema/ad/v1" xmlns:attr="http://www.ebayclassifiedsgroup.com/schema/attribute/v1" xmlns:pic="http://www.ebayclassifiedsgroup.com/schema/picture/v1" xmlns:user="http://www.ebayclassifiedsgroup.com/schema/user/v1" xmlns:rate="http://www.ebayclassifiedsgroup.com/schema/rate/v1" xmlns:reply="http://www.ebayclassifiedsgroup.com/schema/reply/v1" locale="en-CA"> <ad:title>Buying Vintage Stereo Equipment</ad:title> <ad:description>Buying Vintage Stereo Equipment</ad:description> <loc:locations> <loc:location id="1700214"/> </loc:locations> <ad:ad-type> <ad:value>WANTED</ad:value> </ad:ad-type> <cat:category id="14922001"/> <ad:email>EDITED OUT</ad:email> <ad:poster-contact-name>Connor</ad:poster-contact-name> <ad:account-id>EDITED OUT</ad:account-id> <ad:ad-address> <types:zip-code>EDITED OUT</types:zip-code> </ad:ad-address> <ad:price> <types:price-type> <types:value>SPECIFIED_AMOUNT</types:value> </types:price-type> <types:amount>300</types:amount> </ad:price> <attr:attributes> </attr:attributes> </ad:ad>

Here is the Kijiji API error:

OrderedDict([('api-base-error', OrderedDict([('@xmlns', 'http://www.ebayclassifiedsgroup.com/schema/types/v1'), ('@http-status-code', '400'), ('api-errors', None), ('api-debug-errors', None), ('api-field-errors', OrderedDict([('api-field-error', OrderedDict([('field-xpath', 'forsaleby'), ('api-errors', OrderedDict([('api-error', OrderedDict([('message', 'Please select a value for "For Sale By"')]))]))]))]))]))])

Looks like it wants a for sale by field. On the Kijiji site this is either Owner or Business.

from kijiji-reposter.

rybodiddly avatar rybodiddly commented on June 16, 2024

Ok thanks. So it looks like its due to a missing ad attribute. "For sale by", which is handled by the dynamic attribute builder. I can verify that it's missing for the category you're attempting to post this in. So thank you for bringing this bug to my attention. Will see if I can get it sorted quickly.

from kijiji-reposter.

rybodiddly avatar rybodiddly commented on June 16, 2024

problem found. working on solution.

from kijiji-reposter.

rybodiddly avatar rybodiddly commented on June 16, 2024

Solution has been committed. Wasn't actually my server code. Seems Kijiji recently updated the attributes for many of their ads. So had to reacquire and upload all the new attributes. Thanks for catching that for me. Let me know if it works. If so we'll mark this as closed.

from kijiji-reposter.

Connor2hd avatar Connor2hd commented on June 16, 2024

Solution has been committed. Wasn't actually my server code. Seems Kijiji recently updated the attributes for many of their ads. So had to reacquire and upload all the new attributes. Thanks for catching that for me. Let me know if it works. If so we'll mark this as closed.

That fixed it, thanks a lot.

from kijiji-reposter.

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.