Closed alucicrazy closed 9 months ago
Tested on a Chromium clean installation and the problem still happening with this error log:
userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:17
POST http://localhost:9999/graphql 422 (Unprocessable Entity)
unsafeWindow.fetch @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:17
callGQL @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:274
createMarker @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1091
addMarker @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2696
addMarker_handler @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2729
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1471
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1470
click_handler_1 @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2249
userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:832 Uncaught TypeError: Cannot read properties of null (reading 'findScene')
at Stash.processScene (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:832:31)
at EventTarget.<anonymous> (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:190:26)
at unsafeWindow.fetch (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:23:35)
at async Stash.callGQL (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:274:33)
at async createMarker (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1091:18)
at async addMarker (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2696:5)
processScene @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:832
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:190
unsafeWindow.fetch @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:23
await in unsafeWindow.fetch (async)
callGQL @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:274
createMarker @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1091
addMarker @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2696
addMarker_handler @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2729
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1471
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1470
click_handler_1 @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2249
userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1092 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'sceneMarkerCreate')
at createMarker (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1092:24)
at async addMarker (userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2696:5)
createMarker @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1092
await in createMarker (async)
addMarker_handler @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2729
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1471
(anonymous) @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:1470
click_handler_1 @ userscript.html?name=stashmarkers.user.js&id=a1a99486-ea23-447e-9110-e2ec130816f3:2249
console log from firefox:
XHRPOST
http://localhost:9999/graphql
[HTTP/1.1 422 Unprocessable Entity 1ms]
Uncaught TypeError: data.data is null
processScene moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:832
Stash moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:190
fetch moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:23
callGQL moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:274
createMarker moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1091
addMarker moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2696
addMarker_handler moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2729
createEventDispatcher moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1471
createEventDispatcher moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1470
click_handler_1 moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2249
listen moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1238
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2129
mount_component moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1863
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2374
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2555
mount_component moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1863
init moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1960
Matches moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2780
onload moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2876
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
i http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:33
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
r http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:22
Fo http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
p http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:68
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
send http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
Zn http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:16
send http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
Fo http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
No http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
i http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:33
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:42
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:43
j http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:41
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:41
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
t http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
<anonymous> http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:74
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
eval:832:21
Uncaught (in promise) TypeError: result.data is null
createMarker moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1092
addMarker moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2696
addMarker_handler moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2729
createEventDispatcher moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1471
createEventDispatcher moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1470
click_handler_1 moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2249
listen moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1238
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2129
mount_component moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1863
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2374
m moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2555
mount_component moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1863
init moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:1960
Matches moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2780
onload moz-extension://605f8819-653f-4715-bede-5b21a674b531/userscripts/stashmarkers.user.js?id=6cb695e1-ad90-478c-998e-224b3ac7b25f:2876
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
i http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:33
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
r http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:22
Fo http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
p http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:68
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
send http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
Zn http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:16
send http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:71
Fo http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
No http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:23
i http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:33
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:42
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:43
j http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:41
o http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:41
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
St http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
t http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:9
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
message http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:18
<anonymous> http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:74
g http://localhost:9999/scenes/27?qsort=date&qfp=3&continue=false:69
eval:1092:5
It seems that the first request, the one that returns the code 422, is returning some graphql errors
{
"errors": [
{
"message": "must be defined",
"path": [
"variable",
"primary_tag_id"
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
],
"data": null
}
I finally found what is causing this, the Tag on Stash has to be identical with the ones on the OPTIONS variable, and in my case the some exist with different capitalization and some doesn't exist at alll
@cc1234475 add a step on the script to create the tags listed on the OPTIONS on Stash please
small script to create the tags, if it helps:
const apiKey = 'SET_STASH_API_KEY';
const apiEndpoint = 'http://localhost:9999/graphql';
async function createTag(tagName) {
try {
const response = await fetch(apiEndpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'ApiKey': `${apiKey}`,
},
body: JSON.stringify({
query: `
mutation TagCreate {
tagCreate(input: { name: "${tagName}" }){
name
}
}
`,
}),
});
if (response.status === 200) {
const data = await response.json();
console.log(`Tag "${tagName}" created successfully.`, data);
} else {
console.error(`Error creating tag "${tagName}": HTTP status ${response.status}`);
const responseText = await response.text();
console.error(`Response: ${responseText}`);
}
} catch (error) {
console.error(`Error creating tag "${tagName}":`, error);
}
}
const tagNames = [
"Anal",
"Vaginal Penetration",
"Blow Job",
"Doggy Style",
"Cowgirl",
"Reverse Cowgirl",
"Side Fuck",
"Seashell",
"Gape",
"Face Fuck",
"Fingering",
"Kneeling",
"Butter Churner",
"Table Top",
"Double Penetration",
"Missionary",
"Scissoring",
"Flatiron",
"Pussy Licking",
"Ass Licking",
"Ball Licking",
"Face Sitting",
"Hand Job",
"Tit Job",
"69",
"Kissing",
"Dildo",
"Cumshot",
];
tagNames.forEach(createTag);
@alucicrazy Thanks for that, I've added some code to create the tags if the are missing.
Some tags such as "Scissoring" and "Doggy Style" are not being added when the button to add is clicked
The Add all tags button doesn't work at all
Browser: Firefox 119.0.1 (64-bit)