Comments (6)
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.
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.
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.
problem found. working on solution.
from kijiji-reposter.
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.
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)
- Incorrect Location via Postal Code HOT 3
- Reposting doesnโt work HOT 2
- Add tags to the listing HOT 3
- Idea for expanding project HOT 2
- New Kijiji Update Broke LoginFunction? HOT 5
- TypeError: 'NoneType' object is not subscriptable HOT 5
- No edit button for existing ads on schedule HOT 3
- Listing fails to stay active after a 'successful' repost HOT 5
- [FEATURE] Running via script HOT 1
- urllib.error.URLError HOT 1
- [FR] Docker HOT 1
- ModuleNotFoundError: No module named 'pgeocode' HOT 1
- Raspberry Pi error: numpy.ndarray size changed HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired HOT 2
- Kijiji Max Attribute Lengths
- Unable to post pictures
- Unable to post ads with pictures HOT 2
- AutoReplier raised an exception HOT 1
- on posting ads HOT 2
- Coverting in No-SQL Database HOT 5
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 kijiji-reposter.