Skip to content

Cryptic error if no elasticsearch running #1412

@wltrimbl

Description

@wltrimbl
py.test -k test_apix_metagenome

{"ERROR":"resource request failed\nUnsupported object class 'Project' in database 'WebAppBackend'. at /MG-RAST/site/lib/PPO/DBMaster.pm line 444.\n\n"}

This error originates from lines 840-843 of metadata.pm, updating elasticsearch when no elasticsearch server is running. The database object is a red herring.

840 # update elasticsearch
841 foreach my $mgid (@$added) {
842 $self->upsert_to_elasticsearch_metadata($mgid);
843 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions