IMDbDataAccessError: IMDbPy and Cinemagoer no longer work - imdb

I've been working with IMDbPy on and off for the last year. For a week now, all of my codes have stopped working and even the simple codes from tutorials don't work. I always get the same error message:
IMDbDataAccessError: {'errcode': None, 'errmsg': 'None', 'url': 'https://www.imdb.com/find?q=matrix&s=tt', 'proxy': '', 'exception type': 'IOError', 'original exception': <HTTPError 308: 'Permanent Redirect'>}
I tried it alternatively with Cinemagoer and get the same error message there too.
Has anyone an idea of ​​the reasons why?

Related

Flutter - How to get error code line : "Another exception was thrown"

When I run my application, I get an error:
Another exception was thrown: type 'String' is not a subtype of type 'int' of 'index'
My android screen immediately red with the error above, but only a few moments. After that back to normal. What I want to ask is, how can I know which line is error?
are there any values on your code that could be null at some point in time?
like if you are getting a price try to give that value except for null.
if something is like this:
Text(price);
change it to:
Text(price !=null ? 'your price' : "nothing!")
in the picture I see a null value, maybe that's causing the problem. you can also put prints on your code to track that down. you should also check the beginning of errors. that might help too!

The word "Description" causes ajax upload to 403

I have been using Ajax for some time successfully in various ways. One use is for uploading of data, using
$.ajax({
cache: false,
type : "POST",
url : encodeURI("savetext.php?..."),
data : {
data: csvData
},
success: function(data3) {},
error: function (xhr, ajaxOptions, thrownError) {}
});
The string csvData is created as lines of semi-colon - separated data, with lines terminated by '\r\n'.
Recently I have had a problem where I receive a 403 Forbidden on doing the upload.
After a long period of investigation [max file size, Cross-Origin, newline characters, ajax() parameters etc] and trial and error, I have concluded that the the problem is simply that I have the string ";Descri" within csvData.
I found this by splicing csvData in various places. ";Descr" seems to be not a problem but ";Descri" does in every position it occurs. I have not identified if it is a substring of ";Descri" that is the problem. I have now solved the problem completely with a kluge by replacing the word 'Description' in my data by 'Designation'.
This seems a very odd situation. Have I done something wrong? What can I do to ensure that I can include ";Descri" within my data in future?
403 issue solution try adding this in htaccess
SecFilterEngine Off
SecFilterScanPOST Off
Because of time I just deleted the word Description from my data, and the problem went away. However a few months later comething similar happened (but with a different trigger text) and I asked this question on the Webmasters site: https://webmasters.stackexchange.com/questions/115890/how-can-file-content-affect-whether-its-uploading-gets-a-403-error
The (unsatisfactory) answer is given there.

mocha-casperjs: sometimes click/waitForXXX don't work immediately with xpath.

I have been using mocha-casperjs for a while now and I noticed that for some reason, sometimes code like:
casper.click(x("//a[normalize-space(text())='login']"));
or
casper.waitForSelector(x("//a[normalize-space(text())='login']")
don't work immediately, but it fails saying:
xpath selector: //a[normalize-space(text())='login']" still did not exist 5000ms
After some attempts, it just works, but than it doesn't anymore again.
It is not an asynchronous problem, because I use code like:
if(casper.exists(x("//a[normalize-space(text())='login']"))){
console.log('I am here');
}
to test its presence and this always returns "I am here".
Any idea ?
So, I think the problem I was having is related to this question.
The question I have linked to, led me to further testing and to the solution. All the time my tests were failing, it was because I was actually already logged in, so x("//a[normalize-space(text())='login']") wasn't there obviously.
The fact that the below code returned "I am here", it was because I was doing in the wrong way.
if(casper.exists(x("//a[normalize-space(text())='login']"))){
console.log('I am here');
}
Another thing I did wrongly that it might help someone and that I totally missed, is that I moved casper.start and casper.run outside describe("", function(){...}) like:
casper.start();
describe("", function(){
it("...", function(){..})
it("...", function(){..})
});
casper.run(function(){
test.done();
});
I hope this helps someone.
Thanks.

Firefox upload field error: NS_ERROR_CANNOT_CONVERT_DATA

I have an upload field that works in Chrome, but doesn't work i Firefox.
I've tried searching the web, but can't seem to find an answer.
Here's the error I get in Firefox:
NS_ERROR_CANNOT_CONVERT_DATA: Component returned failure code: 0x80460001
(NS_ERROR_CANNOT_CONVERT_DATA) [nsIDOMFormData.append]
[Break On This Error]
data.append(param, params[param]);
What exactly are you passing to append()? Either you're passing a String object (in which case this will be fixed in Firefox 20) or you're passing something that's not a valid argument...

The "expected_title" procedure throws wrong error on expected title

I have some issues with "expected_title" procedure from watir-page-helper.
It is throwing an error like the current web page has a different title than the expected one, although it is the correct title:
RuntimeError: Expected title 'Some title' instead of 'Some Title'.
This happens randomly, and my tests fail frequently on different pages. The website on which I am working is loading in a reasonable amount of time, I don't think it is a loading page issue.
To initialize the pages I am using the next method:
#new_mail_editor = Module::Page.new(#browser, false)
This is for pages that are opened when accessing links.
Does someone have a clue why this is happening?
Is there a way to dodge this issue?
Thank you.
Watir-page-helper has been end-of-lifed, you should try page-object gem.
Meantime I found out what I was doing wrong. When initializing the browser and checking the title, I was using "has_expected_title?" instead of "expected_title". It seems that I didn't used correctly the first function
Now everything works great.

Resources