Closed euberdeveloper closed 1 month ago
It actually does not work with all my adds, another example: TimeoutError: Failed to set special attribute [kleidung_damen.brand_s]
It is also very nerving, because it removes the ad without publishing it
I get a similar error when publishing a vehicle.
2024-03-23 16:46:19,952 [ERROR] TimeoutError: Failed to set special attribute [autos.ez_i]
Hallo, gibt est Neuigkeiten? Der Bot ist nicht mehr benutzbar
Also with [ERROR] TimeoutError: Failed to set special attribute [spielzeug.condition_s]
What I recognized: while publishining, the category is not choosen. This causes this ERROR. The Bot click on category and then clicks on "continue/weiter" without selecting a category.
What I found out:
In my yaml of ad there was the category set to: 17l21871/23l21871
When I check online the link to the category it says: 17/23/gesellschaftsspiele
So I replaced this in my yaml and this worked.
Seems the links to the categories have to be updated
Hi all,
facing the same issue. Seems that this only occurs on number fields?
Eg. have it on: autos.km_i: '30000' autos.ezm_i: '6' autos.ez_i: '2022' autos.power_i: '136'
Lists are working.
What I found out: In my yaml of ad there was the category set to:
17l21871/23l21871
When I check online the link to the category it says:17/23/gesellschaftsspiele
So I replaced this in my yaml and this worked.Seems the links to the categories have to be updated
conclusion:
while downloading an ad the category is red to 161l463/225l463
. When I wanna (re)publish this ad I need this 161/225/festplatten_laufwerke
.
So do we need a mapping table? Or the logic to read the category while saving have to be changed. When I look into the sourcecode I also found this
dimensions: {"dimension1":"sVIP","dimension2":"161","dimension3":"225","dimension4":"festplatten_laufwerke","dimension6":"408","dimension7":"463", [...]
So I have the same issue with correct current category:
e.g.: category: 210/216/opel/corsa/
and issue on
autos.km_i: '30000' autos.ezm_i: '6' autos.ez_i: '2022' autos.power_i: '136'
Does this PR solves your problem? https://github.com/Second-Hand-Friends/kleinanzeigen-bot/pull/308
+1
Bot is basically unusable at the moment because it deletes ads and cannot republish them.
What I found out: In my yaml of ad there was the category set to:
17l21871/23l21871
When I check online the link to the category it says:17/23/gesellschaftsspiele
So I replaced this in my yaml and this worked. Seems the links to the categories have to be updatedconclusion: while downloading an ad the category is red to
161l463/225l463
. When I wanna (re)publish this ad I need this161/225/festplatten_laufwerke
. So do we need a mapping table? Or the logic to read the category while saving have to be changed. When I look into the sourcecode I also found this
dimensions: {"dimension1":"sVIP","dimension2":"161","dimension3":"225","dimension4":"festplatten_laufwerke","dimension6":"408","dimension7":"463", [...]
I don't think it needs any re-mapping. A quick fix is to take the value of art_s
and append it to the category. When I view the categories on the Web they are like this, for example:
On Web, you can see the URL with category 80/81/[name] , where [name] is the art_s the bot is also saving in your ad file. Looks like a simple fix, however, the material, color, etc... values of the drop-down boxes are broken and the bot is still unusable until fixed.
The bot can find the category by itself for me, but it is unable to post anything because it cannot select the values for the dropdowns.
In my case the downloaded categories and the categories where it wanna upload it (again) are different named.
@euberdeveloper
I do have time now to open an PR, but for me a quick fix for the [category].color_s (or whatever .XXX) is was the following:
Replace:
With
await self.web_select(By.XPATH, f"//select[contains(@id, '.{special_attribute_key}')]", special_attribute_value)
The error is that the code is trying to find the exact key, but the ID has category.key instead (At least this is what I observered, and what has fixed my issue and was able to publish Ads again)
Make sure to follow this too before you start a publish process: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/281#issuecomment-2185001333
In my case the downloaded categories and the categories where it wanna upload it (again) are different named.
Can you give an example? For me I tried it with 5 Ads and it worked fine when I appended (if found) the art_s to the category in my config before I tried to publish again.
✔️ Expected Behaviour
It whould work
🐞 Actual Behaviour
It gives the following error:
TimeoutError: Failed to set special attribute [kueche_esszimmer.color_s]
📋 Steps to Reproduce
📺 What browsers are you seeing the problem on? (if applicable)
No response
💻 What operating systems are you seeing the problem on? (if applicable)
No response
📃 Relevant log output (if applicable)