How To Prevent Interproscan Webservice From Giving An Http Error After 120 Sequences?
1
0
Entering edit mode
10.9 years ago
Niek De Klein ★ 2.6k

I want to interproscan about 1000 sequences. I'm using their web service using a modified version of their python soap client. I submit the sequences one at a time, waiting for each sequence to be finished before starting the next one (so no batch job).

After around 120 sequences, the service gives an HTTPError. I checked the input and did runs with different order in which I submit the sequences, so I know that the input is correct.

One possibility that I can think of for the error is that I'm using too many sequences after each other and that I get automatically blocked. So I let my program wait for 2 minutes after submitting the 100th sequence, but this did not help.

What causes this error, and how can I prevent it from happening?

python webservice • 2.3k views
ADD COMMENT
3
Entering edit mode
ADD COMMENT
0
Entering edit mode

Niek has followed up with EMBL-EBI Support, and the issue has been resolved.

FWIW the problem turned out to be a case where the User-agent HTTP header used by Niek's client grew to over 8KB which caused the web server to reject the request with a "400 Bad Request". Changing the client code to ensure this does not happen solved the problem.

ADD REPLY

Login before adding your answer.

Traffic: 1317 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6