Failed to like urls containing non ASCII chars

TumblingJazz Tumblr bot discussion
fp2x
Posts: 12
Joined: Sun Dec 04, 2016 9:46 am

Failed to like urls containing non ASCII chars

Post by fp2x »

I tried to like the following urls with TumblingJazz without success:

submale1955.tumblr.com/post/163056453346/her-poisoned-worm-ḥəṝ-ᵽỗïƨọŋǝḏ-ẉoṟɱ-ɀ
nordeajo.tumblr.com/post/163106080982/yamato2520-onoue-wakaba-尾上若葉
asiancockaddickt.tumblr.com/post/163073653931/lacthan2909-tặng-mấy-anh-đây-ạ-kakaka-zalo
stevernator.tumblr.com/post/149099879749/sexyavsexyiav-三上悠亜
2bro.jp/post/150953158720/お待たせしました-どうもみなさんおはこんばんちわ弟者です926本日リリースのhide


Here is the typical encountered error:

log.YYYYMMDD.like_XXX.log
02:04:24: Like URL: <url_containing_non_ASCII_chars>
02:04:25: *FAILED: Couldn't set all params
02:04:25: * ERROR: <url_containing_non_ASCII_chars>: La référence d'objet n'est pas définie à une instance d'un objet.
error.YYYYMMDD.proclike.log
02:04:25: processlikes
Exception: NullReferenceException
La référence d'objet n'est pas définie à une instance d'un objet.
à 谭퇩䘠뛕쉅ㄣ.꽑悷몫쥇榫䄊()
à 찣툻͌챗铮ᅛ.㱇鳨䏑텱ୌꛧ굢葰(String ។ꥊ᬴窘﷬䏘풹, Bot ɾ煴촧픃萆은钓, DbAction ᅯ㚵⎏අ缎쾳, DbAccount 㯥ƿ⥙삾㹷뢩뮾痺, DbLoggedData 끛ᢕ蝏ᰲ睩㪰磻ۇ, Boolean 碳执甆鳫㬎剷臠會)
à TumblingJazz.processing.ProcessActionLike.눵逸襡敏댫ᱢ庘(DbAccount 㯥ƿ⥙삾㹷뢩뮾痺, DbActionLike ᅯ㚵⎏අ缎쾳, Bot ɾ煴촧픃萆은钓, DbLoggedData 끛ᢕ蝏ᰲ睩㪰磻ۇ, Int32& 꿻⒆ᄳ䢖욕窙嚥⦀, Object 醷횅녘㶷ᣡ쒂ͨ, Boolean& 갵껧蟉륀荲톼授, List`1 瘓ᔩ匾陖ज⎰⨪瓐, String ។ꥊ᬴窘﷬䏘풹, ParallelLoopState ⍫뽅ꤞ�蕃ጩȊ)
à TumblingJazz.processing.ProcessActionLike.ﲆ㆝ᖊ狚훤.뒰럼ꈰ姈ꄬ巪浥(String 펄ꐶィ䐶껐, ParallelLoopState ⍫뽅ꤞ�蕃ጩȊ)
Can you please have a look on those errors?
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

can you send me a SFW url containing non -ASCII.

I am not feeling particularly frisky at the moment and those URLs look like they might be rather frisky.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

Many thanks, I'll check now
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

Actually, I totally forgot:

http://vecte-news.tumblr.com/post/16072 ... ばんビンゴデータ放送
is actually this

http://vecte-news.tumblr.com/post/16072 ... E%E9%80%81

is the same as
http://vecte-news.tumblr.com/post/16072 ... -want-here

as the only important bit is:
http://vecte-news.tumblr.com/post/160724398358/


Maybe I can just get it to ignore everything after the post ID
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

hmmm working fine here:

goto MASS LIKE tab

enter the URL:
http://vecte-news.tumblr.com/post/16072 ... E%E9%80%81

it should appear without the Japenese ? script, instead: tbs%E7%B3%BB%E5%88%97%E3%81%8A%E3%81%B3%E3%81%B0%E3%82%93%E3%83%93%E3%83%B3%E3%82%B4%E3%83%87%E3%83%BC%E3%82%BF%E6%94%BE%E9%80%81
but it means the same
numLikes: 97
logged in via cookies: <user> No Proxy
Daily limit for account: 40 - processed: 0
Like URL: http://vecte-news.tumblr.com/post/16072 ... E%E9%80%81
* SUCCESS: <user>- Total: 1
Pausing for: 9

If that does work for you, please explain how to replicate your isssues



Regards,
Martin
fp2x
Posts: 12
Joined: Sun Dec 04, 2016 9:46 am

Re: Failed to like urls containing non ASCII chars

Post by fp2x »

please explain how to replicate your isssues
By escaping (".../post/12345678/%E3%E...) or reducing (".../post/12345678") it works.
However, TumblingJazz should do the necessary transformation itself.

Here are some steps to reproduce the problem:

In tumblr:
1- Connect to a tumblr account (TA)
2- Follow vecte-news.tumblr.com

I assume you have added TA in Tumbling Jazz.

In TumblingJazz (preparation):
1- In the upper toolbar of the main screen, click the cog wheel button (Settings)
2- In the 'Scraping' fieldset, click the 'Archive' radio button
3- Validate the changement by clicking 'Save Settings' button

I hope the vecte-news tumblog will have a non ASCII urls available in its archive when you'll run this test. Otherwise, follow one of the other tumblog mentionned in the previous posts for running this little test.

In TumblingJazz (create like action):
1- In the upper toolbar of the main screen, click the heart button (Favourite)
2- Click 'Custom search'
3- From the 'Build search' dialog, in the 'Options list', double click on 'My Followings'
4- Again from the 'Build search' dialog, in the 'Options list', double click on 'Recent Posts Of'
5- Now, in the 'Selections list' double click on 'Recent Posts Of' and enter 50 in the small appearing dialog
6- From this small dialog, Click OK
7- From the 'Build search' dialog, Click OK
8- Select the tumblr account (TA) in the User accounts list at the bottom of the main screen
9- Click the 'Like' button to create and add the action
(10- Let TumblingJazz run this action)

=> Check the action log. You should see errors similar to the ones I sent in the first post of this thread.

Sorry for not providing some steps earlier: I originally thought TumblingJazz handle urls in the same manner throughout the whole application.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

ok, I think I understand the issue. The URLs are scraped and passed through to another stage, rather than you providing them. I imagine there is an encoding issue at some point and the URLs are becoming invalid, probably some utf8 / ascii issue somewhere. I will step through your instructions and get it fixed



Regards,
Martin
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »

interestingly, if you scrape via RSS (settings tab) the RSS feed does NOT include the title after post ID
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Failed to like urls containing non ASCII chars

Post by martin@rootjazz »


:)

The next update will fix this. I shall le't you know when it is ready.



Regards,
Martin
Post Reply