Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot repost, ad file...1525673021.xml does not exist #3

Closed
apexmateria opened this issue Sep 28, 2020 · 8 comments
Closed

Cannot repost, ad file...1525673021.xml does not exist #3

apexmateria opened this issue Sep 28, 2020 · 8 comments

Comments

@apexmateria
Copy link

apexmateria commented Sep 28, 2020

Full error:

Cannot repost, ad file C:\Users\Admin PC\kijiji-manager\instance\user\86515264\1525673021.xml does not exist

I don't have a "user" folder in my instance folder: https://i.imgur.com/RaLo8QR.png

I'm able to delete ads without issue.

When I try to post a new ad it gives me 500 internal server error in the browser, in Git Bash it gives me a long list of errors:

https://pastebin.com/gkpcpReg

@jackm
Copy link
Owner

jackm commented Sep 28, 2020

When kijiji-manager tried to post the image data from the ad, the local server timed out waiting for a response. This is also why it did not create the ad file or user directory; because it got an exception before that step.

I can try increasing the timeout period so that the local server will wait longer for a response from the remote Kijiji server.

@apexmateria
Copy link
Author

apexmateria commented Sep 28, 2020

I wonder why the image data isn't transferring. The error pops up instantly, even if I'm trying to re-post an ad with 8 images.

@jackm
Copy link
Owner

jackm commented Sep 28, 2020

Are you attempting to repost an ad that was originally created by kijiji-manager? If not, then reposting will not work because kijiji-manager does not have the ad file saved, which is usually created when you first post an ad using the web interface.

Update: This behaviour has been fixed in release v0.2.2

@apexmateria
Copy link
Author

apexmateria commented Sep 29, 2020

Yes, I've been trying to re-post ads that I created manually through kijiji a while back.

Originally when I tried to post an ad I got 500 server error but I tried again and was able to post successfully! I'm going to keep playing around with it. If I run into any more issues I'll update you.

Appreciate your help!

@apexmateria
Copy link
Author

apexmateria commented Sep 29, 2020

I tried to post 3 ads:

  1. car for sale - worked perfectly

  2. kids toys - got 500 internal server error

  3. kids toys - got 500 internal server error

the kids toy ads both gave a server error (white screen) but actually ended up posting on kijiji successfully

I saved the error logs: https://pastebin.com/bJxr09Cg

Seems to be something to do with character encoding. I pasted the ad details from a txt file so maybe that's why.

Update: posted a few more ads and they all worked successfully

@jackm
Copy link
Owner

jackm commented Sep 29, 2020

I've also forced utf-8 encoding when reading and writing the ad file, so now non-ascii characters are also supported in ad files.

@apexmateria
Copy link
Author

Awesome, thanks!

This bot is a huge time saver. A "repost all" feature would be amazing, not sure this is the right place to request that.

Regardless thanks again for your help. Everything is working now!

@jackm
Copy link
Owner

jackm commented Oct 1, 2020

A "repost all" feature would be amazing, not sure this is the right place to request that.

Implemented in commit cebf216

@jackm jackm closed this as completed Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants