Jump to content
UBot Underground

Error Converting Value To Type And Cannot Deserialize The Current Json Array.


Recommended Posts

I was trying to scrape a user's videos from Youtube (title+url). However, the bot seems to crash after a certain amount of time (pulled about 4700 records). I'm getting 2 types of errors.

 

1. Error converting value true to type

2. Cannot deserialize the current JSON array

 

I saw a thread here which didn't really solve anything: http://network.ubotstudio.com/forum/index.php/topic/17342-ubot-error-cannot-deserialize-the-current-json/

 

Any ideas as to what causes these errors?

 

Sample page: https://www.youtube.com/user/GamingCurios/videos

 

Thanks.

Edited by nubot
Link to post
Share on other sites
  • 9 months later...

just started having same errors on code that worked fine but then got those errors after upgrading to 5.9.43

Did you ever solve it?

 

I did resolve it but I honestly don't remember how now. It was either a bug fix (because I think I reported it), an error in my code, or I changed the browser in Ubot.

If you go to tools -> options which browser are you using? Try Chrome 29 if you're not using that one.

Link to post
Share on other sites
  • 2 months later...

Getting this one right now too.

 

I'll try Chrome49 as we got  2 choices right? (21 and 49)

 

It has to do with scraping. It stops after while (not youtube related in my case tho) then gives:

 

Cannot deserialize JSON object into type System Boolean

 

5.9.44 version here

 

Oh yeah and if i try something else. It crashes UB

Link to post
Share on other sites

Getting this one right now too.

 

I'll try Chrome49 as we got  2 choices right? (21 and 49)

 

It has to do with scraping. It stops after while (not youtube related in my case tho) then gives:

 

Cannot deserialize JSON object into type System Boolean

 

5.9.44 version here

 

Oh yeah and if i try something else. It crashes UB

Post the site and scrape code, or page for html

Link to post
Share on other sites
  • 7 months later...

I'm getting this issue as well now.

Simple scraping of id of same images on page.

set(#addStar,$scrape attribute(<src="https://www.mysite.com/star_16.gif">,"id"),"Global")

 

EDIT:

Now it's getting worse - I'm getting errors on every time I'm trying to use the select tool (the '<>' icon in the click command, for example).  After a few seconds, UBOT crashes.

This is not related to a certain web page...

Edited by yonatankra
Link to post
Share on other sites

Did anyone figure out a solution for this? i am getting the same error way too many times..

 

Here is one of my recent ubot scripts that i am getting this error on

http://snippi.com/raw/09ejd4d

When i try to run this part, i get the error

 

kXAj757.png

 

Screenshot of Errors

 

rixbk0a.png

 

5MxI4hL.png

 

But when i run that part individually in a new script it works fine which is really odd :(

 

I tried, reset browser instead of clear cookies, its not working too..

 

If anyone has any suggestions, please let me know, any help would be really appreciated.

Link to post
Share on other sites

Small update : That same bot seems to be working fine when is switch to chrome 21 but then "reset browser" function doesn't work in it and sites like tumblr don't support chrome 21 so they keep giving odd errors, and it only solves the issue around 30-40%, when i loop the bot it works correctly for the first few times and after that it crashes, sometimes it crashes at the very first loop itself.

Link to post
Share on other sites
  • 6 months later...

I have the same issue.. What is the solution?  :(
I'm trying to scrape content from a page, this worked for 47 pages long, then on page 48 it gave sudden problems..

 

Really hope someone knows how to solve this!

Edited by scrapelicious
Link to post
Share on other sites
  • 5 years later...

I`m getting the exact same error in 2023 with the latest version (6.7.23) 

During the first 3 - 5 loops everything is working like it should be, then the error is popping up.

Any solutions or work arrounds for this?

 

 

Bildschirmfoto vom 2023-07-11 16-07-56.png

Edited by unibotsi
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...