CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[TimestampTrade] GraphQL Validation is Failing

Open choeronline opened this issue 6 months ago • 12 comments

I am trying to sync markers from timestamptrade but when I try to sync, I get following error message:

2025-08-02 07:15:48 Error
Plugin returned error: exit status 1 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] Exception: 422 Unprocessable Entity query failed. v0.28.1-93-g14be3c24 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] raise Exception(error_msg) 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.local/lib/python3.12/site-packages/stashapi/classes.py", line 271, in _handle_GQL_response 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] return self._handle_GQL_response(response) 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.local/lib/python3.12/site-packages/stashapi/classes.py", line 228, in _GQL 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] return self._GQL(query, variables) 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.local/lib/python3.12/site-packages/stashapi/stashapp.py", line 239, in call_GQL 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] result = self.call_GQL(query, variables, callback=callback) 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] ^^^^^^^^^^^^^^^^^^ 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] count = stash.find_scenes( 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.local/lib/python3.12/site-packages/stashapi/stashapp.py", line 1708, in find_scenes 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.stash/plugins/community/timestampTrade/timestampTrade.py", line 465, in processAll 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] processAll(query) 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] File "/root/.stash/plugins/community/timestampTrade/timestampTrade.py", line 1463, in 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] Traceback (most recent call last): 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] d 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] d 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] 422 Unprocessable Entity query failed. v0.28.1-93-g14be3c24 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] 422 Unprocessable Entity GQL data response is null 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Cannot spread fragment "Folder" within itself. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Cannot spread fragment "BasicFile" within itself via "Folder". 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Cannot spread fragment "BasicFile" within itself. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Error
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Field "fingerprint" argument "type" of type "String!" is required, but it was not provided. 2025-08-02 07:15:48 Info
[Plugin / Timestamp Trade] Getting scene count

What could be the issue? Let me know if you need more information

choeronline avatar Aug 01 '25 21:08 choeronline

try updating stashapp-tools first

feederbox826 avatar Aug 07 '25 01:08 feederbox826

I have the latest version installed:

Image

choeronline avatar Aug 17 '25 02:08 choeronline

Same problem, same stashapp-tools version

seeshepard avatar Sep 07 '25 18:09 seeshepard

Same problem here, same stashapp-tools version.

Using Python 3.13 (3.14 out soon)!

planetrocky avatar Sep 08 '25 02:09 planetrocky

Still unable to replicate, make sure you're not using any venvs that might lock it on a different version and make sure you're on v0.28.1+

feederbox826 avatar Sep 08 '25 03:09 feederbox826

So I'm on Windows and googling the error got me here. I updated to the dev build ([v0.28.1-93-g14be3c24]) of Stash the other day and noticed today that Markers weren't generating. I had a GraphQL error as well. I remembered I had switched versions of Stash and went back to the 28.1 posted March 19, I don't get an error and things work properly again.

Unsure if it's related but thought I would pass my findings along

bliks06 avatar Sep 08 '25 23:09 bliks06

I've been running the development build for months.

I tried the latest release version and the latest dev build, same error.

v0.28.1-100-g12c4e1f6: Latest development build

planetrocky avatar Sep 12 '25 19:09 planetrocky

same issue here.

xiosensei avatar Sep 22 '25 20:09 xiosensei

GraphQL has been broken for many months now; affecting many plugins. I've had to disable all plugins for now.

planetrocky avatar Sep 24 '25 07:09 planetrocky

Still unable to replicate on a fresh docker (stashapp/stash) install, please provide more details about your environment

  • OS
  • py/pip implementation (uv/ miniconda/ conda)
  • python and pip version

since it is such a common issue with outdated stashapp tools and pip is so finnecky (user vs system vs venv) installs it's a complete toss up

feederbox826 avatar Sep 26 '25 04:09 feederbox826

the gql issue would be from fragment/attribute overrides not being configured properly the latest version of tools should support this

another workaround would be to statically define a fragment that is passed to tools that will not be automatically generated

stg-annon avatar Sep 26 '25 16:09 stg-annon

For those still getting an error try running latest stashapi instead of stashapp-tools package.

DogmaDragon avatar Sep 29 '25 18:09 DogmaDragon