MMinte icon indicating copy to clipboard operation
MMinte copied to clipboard

MongoDB issue

Open tenguzame opened this issue 5 years ago • 2 comments

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

tenguzame avatar Jul 23 '19 10:07 tenguzame

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 avatar Sep 04 '19 15:09 PollyTikhonova

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]

PollyTikhonova avatar Sep 04 '19 15:09 PollyTikhonova