Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL query failed - "cannot use map as Boolean" #16

Closed
rlsnightmare opened this issue Dec 14, 2023 · 3 comments
Closed

GraphQL query failed - "cannot use map as Boolean" #16

rlsnightmare opened this issue Dec 14, 2023 · 3 comments

Comments

@rlsnightmare
Copy link

rlsnightmare commented Dec 14, 2023

Hi,
there seems to be an error whenever a saved filter contains the "organized" filter.
The Kodi log says the following:

Error Contents: GraphQL query failed:422 - b'{"errors":[{"message":"cannot use map as Boolean","path":["variable","scene_filter","organized"],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}],"data":null}'. Query: 
query findScenes($scene_filter: SceneFilterType, $filter: FindFilterType!) {
  findScenes(scene_filter: $scene_filter, filter: $filter) {
    count
    scenes {
      id
      title
      details
      rating
      date
      created_at
      paths {
        screenshot
      }
      file {
        duration
        video_codec
        audio_codec
        width
        height
      }
      studio {
        name
      }
      performers {
        name
      }
      tags {
        name
      }
      scene_markers {
        id
      }
    }
  }
}
. Variables: {'filter': {'per_page': -1, 'sort': 'created_at', 'direction': 'DESC'}, 'scene_filter': {'organized': {'modifier': 'EQUALS', 'value': 'false'}, 'stash_id_endpoint': {'modifier': 'NOT_NULL', 'value': ''}}}

Version 0.0.9

@level451
Copy link

level451 commented Dec 31, 2023

Im getting the same and also with perfromers:

`raise Exception(
Exception: GraphQL query failed:422 - b'{"errors":[{"message":"cannot use map as String","path":["variable","scene_filter","is_missing"],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}],"data":null}'. Query:
query findScenes($scene_filter: SceneFilterType!, $filter: FindFilterType!) {
findScenes(scene_filter: $scene_filter, filter: $filter) {
count
scenes {
id
title
details
rating100
date
created_at
paths {
screenshot
}
files {
duration
video_codec
audio_codec
width
height
}
studio {
name
}
performers {
name
}
tags {
name
}
scene_markers {
id
}
}
}
}
. Variables: {'filter': {'per_page': -1, 'sort': 'date', 'direction': 'DESC'}, 'scene_filter': {'is_missing': {'modifier': 'EQUALS', 'value': 'performers'}}}
-->End of Python script error report<--

2023-12-30 18:36:15.364 T:15452 info : CActiveAESink::OpenSink - initialize sink
2023-12-30 18:36:15.440 T:27432 error : XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.stash/?criterion=%7b%22is_missing%22%3a%20%7b%22modifier%22%3a%20%22EQUALS%22%2c%20%22value%22%3a%20%22performers%22%7d%7d&list=scenes&sort_dir=DESC&sort_field=date&title=Performers
2023-12-30 18:36:15.468 T:27124 error : CGUIMediaWindow::GetDirectory(plugin://plugin.video.stash/?criterion=%7b%22is_missing%22%3a%20%7b%22modifier%22%3a%20%22EQUALS%22%2c%20%22value%22%3a%20%22performers%22%7d%7d&list=scenes&sort_dir=DESC&sort_field=date&title=Performers) failed
`

@gitgiggety
Copy link
Owner

Thanks for the report and sorry for me not noticing.

I just created a pull request (#21) with some fixes which should make it work again. Could you please test it? You can download a test version here, then unpack the zip file, which contains another zip, and this zip resulting zip file can then be installed in Kodi (using "Install from ZIP" option).

@gitgiggety
Copy link
Owner

Fixed in 0.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants