mendessoares / MMinte

16 stars 10 forks source link

MongoDB issue #14

Open tenguzame opened 5 years ago

tenguzame commented 5 years ago

Greetings, I'm trying to use MMinte with a personal 16s rDNA sequencing project. Everything goes well until I reach thw Widget 3, which gives me the following error:

ServerError: Attribute (host) does not pass the type constraint because: Validation failed for 'Str' with value undef at constructor MongoDB::MongoClient::new (defined at /disks/patric-common/runtime/lib/perl5/site_perl/5.20.2/x86_64-linux/MongoDB/MongoClient.pm line 1069) line 232"

What kind of issue is that? Best regards

PollyTikhonova commented 5 years ago

Comment all lines with _wait_for_job(job_id) in mackinac/modelseed.py (mackinac is a module, like mminte) Actually, a _wait_for_job() function should be rewritten, but commenting works.

PollyTikhonova commented 5 years ago

Also, I can advice to add these lines in def call(self, method, params, timeout=1800) function in mackinac/SeedClient.py:

        if (response.status_code == 504):
            return

before the last if. So, the end of the function will look like this:

        if (response.status_code == 504):
            return
        if (response.status_code != requests.codes.OK):
            response.raise_for_status()
        return json.loads(response.text)['result'][0]