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

TimeStampTrade broken since I updated to v0.27.X #456

Open
johnhargreaves opened this issue Nov 2, 2024 · 7 comments
Open

TimeStampTrade broken since I updated to v0.27.X #456

johnhargreaves opened this issue Nov 2, 2024 · 7 comments

Comments

@johnhargreaves
Copy link

johnhargreaves commented Nov 2, 2024

Greetings:

Once I updated to 0.27 (and wasn't fixed with .1 or ,2), I cannot get timeStampTrade to work. At first, it was the syntax error (#447 . But once I fixed that manually (per the suggestion in #448), I get a 422 error.

here is the log: I suspect something in the first event (GRAPHQL_VALIDATION_FAILED: Cannot spread fragment "Group" within itself via "GroupDescription".) that cascades but have not been able to drill down. To be fair, my python skills are rudimentary at best (although I did replace the double quotes with single quotes ... :-)

Here is the log:

2024-11-02 14:39:58
Error   
Plugin returned error: exit status 1
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade] Exception: 422 Unprocessable Entity query failed. v0.27.2-76648
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]     raise Exception(error_msg)
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]   File "C:\python311\Lib\site-packages\stashapi\classes.py", line 270, in _handle_GQL_response
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]     return self._handle_GQL_response(response)
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]   File "C:\python311\Lib\site-packages\stashapi\classes.py", line 227, in _GQL
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]     return self._GQL(query, variables)
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]   File "C:\python311\Lib\site-packages\stashapi\stashapp.py", line 216, in call_GQL
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]     result = self.call_GQL(query, variables)
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]   File "C:\python311\Lib\site-packages\stashapi\stashapp.py", line 1484, in find_scene
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]     scene = stash.find_scene(json_input["args"]["scene_id"])
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 1437, in <module>
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade] Traceback (most recent call last):
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade] 422 Unprocessable Entity query failed. v0.27.2-76648
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade] 422 Unprocessable Entity GQL data response is null
2024-11-02 14:39:58
Error   
[Plugin / Timestamp Trade] GRAPHQL_VALIDATION_FAILED: Cannot spread fragment "Group" within itself via "GroupDescription".

And if it is a user-generated bug, I am happy to learn and be taught!

Thanks much,

@stg-annon
Copy link
Contributor

this requires you to update stashapp-tools Groups are a new feature with the new Stash update and need to be handled differently

@magicswarmingswarm
Copy link

magicswarmingswarm commented Nov 4, 2024

I have this issue in 0.26. I don't believe this is to do with 0.27 specifically, it was working fine before. Also updating stashapp-tools does not fix it.
Error

Plugin returned error: exit status 1
[Plugin / Timestamp Trade]     KeyError: 'urls'
[Plugin / Timestamp Trade]     ~~~~^^^^^^^^
[Plugin / Timestamp Trade]     if not movie_scrape["urls"]:
[Plugin / Timestamp Trade]     File "C:\Users\x\Desktop\Stash\plugins\community\timestampTrade/timestampTrade.py", line 259, in processSceneTimestamTrade
[Plugin / Timestamp Trade]     processSceneTimestamTrade(s)
[Plugin / Timestamp Trade]     File "C:\Users\x\Desktop\Stash\plugins\community\timestampTrade/timestampTrade.py", line 24, in processScene
[Plugin / Timestamp Trade]     processScene(scene)
[Plugin / Timestamp Trade]     File "C:\Users\x\Desktop\Stash\plugins\community\timestampTrade/timestampTrade.py", line 1438, in <module>
[Plugin / Timestamp Trade]     Traceback (most recent call last):

@johnhargreaves
Copy link
Author

johnhargreaves commented Nov 4, 2024

I re-installed Python (now 3.13) and then re-installed stashapp-tools, and now I'm getting a different error:

2024-11-04 11:04:20
Error   
Plugin returned error: exit status 1
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade] KeyError: 'addTsTradeTag'
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]        ~~~~~~~~^^^^^^^^^^^^^^^^^
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]     if settings["addTsTradeTag"]:
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 60, in processSceneTimestamTrade
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]     processSceneTimestamTrade(s)
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 24, in processScene
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~^^^^^^^
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]     processScene(scene)
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 1438, in <module>
2024-11-04 11:04:20
Error   
[Plugin / Timestamp Trade] Traceback (most recent call last):
2024-11-04 11:04:18
Error   
Plugin returned error: exit status 1
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade] KeyError: 'addTsTradeTag'
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]        ~~~~~~~~^^^^^^^^^^^^^^^^^
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]     if settings["addTsTradeTag"]:
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 60, in processSceneTimestamTrade
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]     processSceneTimestamTrade(s)
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 28, in processScene
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~^^^^^^^
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]     processScene(scene)
2024-11-04 11:04:18
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 1438, in <module>

@stg-annon
Copy link
Contributor

@magicswarmingswarm that is a different error

Cannot spread fragment "Group" within itself via "GroupDescription" has to do with 0.27 and how stashapp-tools automatically queries data

KeyError: 'urls' has to do with querying the urls field of movies and it not existing which would need some error handling

@johnhargreaves not sure what's going on with that new error seems like somethings missing from the error log

@johnhargreaves
Copy link
Author

johnhargreaves commented Nov 7, 2024

This is what I have when I initiated the "sync" action:

2024-11-07 09:36:02
Error   
Plugin returned error: exit status 1
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade] KeyError: 'addTsTradeTag'
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]        ~~~~~~~~^^^^^^^^^^^^^^^^^
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     if settings["addTsTradeTag"]:
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 60, in processSceneTimestamTrade
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     processSceneTimestamTrade(s)
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 24, in processScene
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~~~^^^
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     processScene(s)
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 486, in processAll
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     ~~~~~~~~~~^^^^^^^
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]     processAll(query)
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade]   File "E:\plugins\community\timestampTrade/timestampTrade.py", line 1454, in <module>
2024-11-07 09:36:02
Error   
[Plugin / Timestamp Trade] Traceback (most recent call last):
2024-11-07 09:36:01
Info    
[Plugin / Timestamp Trade] fetching data: 0 - 100 0.0%
2024-11-07 09:36:01
Info    
[Plugin / Timestamp Trade] 1 scenes to process.
2024-11-07 09:36:01
Info    
[Plugin / Timestamp Trade] Getting scene count

@PineappleTwilight
Copy link

PineappleTwilight commented Nov 8, 2024

I fixed this problem by opening the YAML file, copying the setting string associated with addTsTradeTag (described as adding the [Timestamp] tag to markers), and replacing that errored string with it in the python file. I then enabled the option in Stash and it works perfectly.

I am unsure which of these two fixes the problem, but feel free to try both!

@Raptor05
Copy link

I fixed this problem by opening the YAML file, copying the setting string associated with addTsTradeTag (described as adding the [Timestamp] tag to markers), and replacing that errored string with it in the python file. I then enabled the option in Stash and it works perfectly.

I am unsure which of these two fixes the problem, but feel free to try both!

Could you describe a little bit deeper, what you have done? I have exactly the same issue.

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

5 participants