Open chagas98 opened 1 year ago
If an integer is returned, it may be the error code from the web service itself (e.g. 404). I should add a try/except but meanwhile, I believe, you may do it in your code instead of str(batch) since str(batch) will work (if your output is the error code 404). Maybe the service was down when you try, or you request is wrong. Could you provide a working exmaple ? thanks
I got an error from
bioservices
when it was running thecazy_webscraper
application. I opened an issue there.The error arose when I tried to get some data from UniProt. It seems that
batch = self.services.http_get(link, frmt="txt")
returns an integer instead of a string. When I forced the process withstr(batch)
, I got a warning message, but I could have access to the data.However, it was not a good practice, which led me to come and check this issue. Any thoughts?
Thanks in advance.