IOHandler value is not valid help with this message

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
Robertg_s
Posts: 9
Joined: 2016-09-14 03:01:24
Location: Nanaimo, British Columbia Canada

IOHandler value is not valid help with this message

Post by Robertg_s »

Hi all

I have been using this product for some time and today I am now getting a message "IOHandler value is not valid" with the IMDB script. I am unable to determine why this is coming up now all of a sudden. Does anyone know what the problem could be? If you require more information I will do my best to get it for you.

Other than that I think is the best product I have found for keeping track of my movies which now is 3,268 movies and still growing.

Could it be I have reached the limit? Although I can add more I am still getting the error above.
Mamdouh
Posts: 16
Joined: 2013-10-24 14:29:33
Location: Egypt

Post by Mamdouh »

Me also , I have this issue today while I'm using imdb script.

I have 400 movies in AMC and it didn't import the movie poster ( I think it's the main issue cause this message)

Please experts, help to solve this!
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Do you have latest version of the IMDB script? (3.86 - it is displayed in the bottom panel of the scripts window)
If so, maybe it is due to a combination of some options used ; can you make a screenshot of the options used?
Poster seems to work for me though... (tested with large & small image)
Mamdouh
Posts: 16
Joined: 2013-10-24 14:29:33
Location: Egypt

Post by Mamdouh »

When I am using the script , it imported all the data from imdb.com but the message appeared and no picture is imported.

Yes I'm using the last version 3.86 but I don't understand what you mean with "combination of some options used" could you clarify it for me?
Mamdouh
Posts: 16
Joined: 2013-10-24 14:29:33
Location: Egypt

Post by Mamdouh »

Could you upload the version of imdb.ifs you have to try , as it doesn't import the movie poster and show "IOHandler value is not valid" error message.
deadeye
Posts: 33
Joined: 2009-02-17 17:33:43

Post by deadeye »

I have seen this message when my script was trying to download via HTTPS instead of HTTP. Maybe this has something to do with it?
Robertg_s
Posts: 9
Joined: 2016-09-14 03:01:24
Location: Nanaimo, British Columbia Canada

Post by Robertg_s »

I too have updated my scripts for IMDb to 3.86 and still getting the IOHandler value is not valid. I changed no options since it worked under the previous version. Yet I too get no poster. I did notice when using the new version the Picture option is not automatically checked. I did try with it checked and it still does not import the poster. I can find the poster and do my own copy and paste, but I wouldn't mind getting the poster at the same time as the rest of the information I used to get.
I am open to any suggestions for making this work again.
deadeye
Posts: 33
Joined: 2009-02-17 17:33:43

Post by deadeye »

Indeed, when it's trying to download the picture, the URL evaluates to this:

'https://images-na.ssl-images-amazon.com/images/.....................'

Changing to:
'http://images.amazon.com/images/...........' seems to work

in both the ImportSmallPicture and ImportLargePicture functions, just before:
GetPicture(Value);

I inserted this:
Value := StringReplace(Value, 'https://images-na.ssl-images-', 'http://images.');

Needs testing and there may be a better way. :)
Robertg_s
Posts: 9
Joined: 2016-09-14 03:01:24
Location: Nanaimo, British Columbia Canada

Post by Robertg_s »

Deadeye I just want to how am I suppose to change the script as you said you did or do I just wait and do my copy and paste until I know its been corrected.
Or can you send me a copy of the modified script you are using. If you do, how do I go about adding that to the other scripts that AMC uses?
Mamdouh
Posts: 16
Joined: 2013-10-24 14:29:33
Location: Egypt

Post by Mamdouh »

Thanks "deadeye" it's worked with me :grinking:

"Robertg_s" you can do the following:
1- Open the imdb script editor.
(Get Information>>From Internet Using Script>>choose IMDB>>Editor)
2- Search on "***** functions to import the different pictures kinds, depending of the option selected by user *****" using the search tool.
3- Find the line where "GetPicture(Value);" is , and insert the line "Value := StringReplace(Value, 'https://images-na.ssl-images-', 'http://images.'); " before it.
For both "Import small picture from IMDB movie main page" and " Import large image from link on IMDB movie main page"
4- Run the script and it will work fine.

Hope it's clear for you!

Thanks again "Robertg_s"
Robertg_s
Posts: 9
Joined: 2016-09-14 03:01:24
Location: Nanaimo, British Columbia Canada

Post by Robertg_s »

Thanks Deadeye.

I managed to do that. It works now without getting the error message, the picture did not appear to great for the one I needed but it is so good not getting the error anymore. Thought I broke it :lol:

So I just googled it found a picture that work and did my copy/paste for a more vivid picture. Will try again shortly with another movie.

Thanks again for your help. I learned a few new things during this which is always good to know.

Have a great day.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

https is supported only recently in AMC (maybe only in current beta), that may be why I do not have problems with it.

Or maybe it only occurs on some movies (I did not test a lot different ones)
JuanRa_007
Posts: 21
Joined: 2014-06-08 09:08:31

Post by JuanRa_007 »

It is right, AntB!! With AMC 4.2.1 [BETA] the images are added without problems.
davezn
Posts: 32
Joined: 2013-12-12 14:55:59
Location: RSA

IOHandler value is not valid

Post by davezn »

Hi Deadeye,
Your script edit worked for me.
Thanks
Davezn

in both the ImportSmallPicture and ImportLargePicture functions, just before:
GetPicture(Value);

I inserted this:
Value := StringReplace(Value, 'https://images-na.ssl-images-', 'http://images.');
:) ;) :grinking:
kalimagdora
Posts: 63
Joined: 2009-03-11 14:36:10
Location: Hungary

Re: IOHandler value is not valid

Post by kalimagdora »

Thank you very much, now it's working :grinking:
mrobama
Posts: 85
Joined: 2009-04-03 12:34:34

Post by mrobama »

Thank you, it works, maybe someone should update imdb script so other user can update easily without looking here
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

indeed; I updated it on the server
Post Reply