shirosaidev/diskover-web

REST API | tagging multiple files results in error from ES

doubleailes opened this issue · 0 comments

Hi guys when i wanna tag multiples files, diskover return a weird error

here is my REST code

d = {'tag': 'keep', 'files': ['/volt/minuscule2/SHOTS/1390/1390_0050/GuerillaScene/VERSIONS/1390_0050_GuerillaScene_v002.gproject', '/volt/minuscule2/SHOTS/1390/1390_0050/GuerillaScene/VERSIONS/1390_0050_GuerillaScene_v012.gproject']}
r = requests.put(
            "http://diskover.theyard.lan/api.php/diskover-2020-10-29-volt/tagfile",
            data=json.dumps(d),
            timeout=5,
        )

it return this error

{'error': 'Message: '
          'Elasticsearch\\Common\\Exceptions\\UnexpectedValueException: "id" '
          'is not a valid parameter. Allowed parameters are "_source", '
          '"_source_exclude", "_source_include", "allow_no_indices", '
          '"analyze_wildcard", "analyzer", "batched_reduce_size", "client", '
          '"custom", "default_operator", "df", "docvalue_fields", '
          '"expand_wildcards", "explain", "fielddata_fields", "filter_path", '
          '"filter_path", "from", "human", "ignore_unavailable", '
          '"indices_boost", "lenient", "lowercase_expanded_terms", '
          '"preference", "q", "query_cache", "request_cache", "routing", '
          '"scroll", "search_type", "size", "slice", "sort", "source", '
          '"stats", "stored_fields", "suggest_field", "suggest_mode", '
          '"suggest_size", "suggest_text", "terminate_after", "timeout", '
          '"typed_keys", "version" in '
          '/app/diskover-web/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php:237\n'
          'Stack trace:\n'
          '#0 '
          '/app/diskover-web/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(74): '
          'Elasticsearch\\Endpoints\\AbstractEndpoint->checkUserParams(Array)\n'
          '#1 '
          '/app/diskover-web/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(952): '
          'Elasticsearch\\Endpoints\\AbstractEndpoint->setParams(Array)\n'
          '#2 /app/diskover-web/public/api.php(277): '
          'Elasticsearch\\Client->search(Array)\n'
          '#3 /app/diskover-web/public/api.php(38): put(Array, Array)\n'
          '#4 {main}'}

i'm using python3.7