Comments (4)
Looks like the graphql is screwed up
'errors': [{'message': 'Cannot query field "getToken" on type "Query".', 'locations': [{'line': 3, 'column': 3}], 'extensions': {'code': 'GRAPHQL_VALIDATION_FAILED'}}, {'message': 'Unknown type "AuthPayload". Did you mean "Upload"?', 'locations': [{'line': 9, 'column': 33}], 'extensions': {'code': 'GRAPHQL_VALIDATION_FAILED'}}]}
from unsee-dl.
@andsala As usual, thank you for all the work you have done. I will find some way to repay you, I swear.
from unsee-dl.
@dgndgn I appreciate some feedback. Admittedly I am over my pay grade, but nonetheless have spent numerous hours attempting to learn and troubleshoot what little I can, and I have gotten nowhere.
I discovered the server running the websocket server on unsee.cc is apollo graphql. You can connect to the websocket and query the server if you can find the appropriate syntax to do so, which I have not. It is not the standard graphql syntax, but rather a json based variant.
I have installed a test server locally to test queries with, but the syntax is different than on the websocket, and I am having some difficulty locating documentation relating to the json variant. According to what I am reading, the following should be an appropriate introspection query that would inform the user on types available should look like this:
{
__schema {
directives {
name
description
}
subscriptionType {
name
description
}
types {
name
description
}
queryType {
name
description
}
mutationType {
name
description
}
queryType {
name
description
}
}
}
But as you can tell, the above query is not in json format, and converting it to such has not proved to be fruitful. So as for the moment, I am just spinning my wheels and not getting anywhere. It has been one hellacious week. I think I need to take a nap, now.
Below are a few links with good reference information in them:
https://www.apollographql.com/blog/the-anatomy-of-a-graphql-query-6dffa9e9e747/
https://graphqlmastery.com/blog/graphql-introspection-and-introspection-queries
from unsee-dl.
I never really appreciated how advanced this python script was until I started to take a nose dive into resolving this error.
from unsee-dl.
Related Issues (16)
- Yet another change in unsee beta api... "GRAPHQL_VALIDATION_FAILED" appears to be an easy fix.
- 2 for 1: `WSServerHandshakeError: 400` and `ClientConnectorError: Cannot connect...no address` HOT 3
- No images found in album HOT 2
- TypeError: __init__() got an unexpected keyword argument 'encoding' HOT 2
- Script is currently broken. Reports 0 images in album, and downloads nothing. No errors given. HOT 3
- Only downloads the first image. HOT 5
- images embeded with user's IP in unsee new HOT 1
- After update of unsee.cc script stopped working
- setting timeout variable?? HOT 1
- Don't know how to use the program HOT 1
- Unsee Beta released HOT 2
- Script completes successfully, but outputs traceback info
- Error when using newest Beta release: "No images found in album" HOT 1
- images embeded with user's IP in unsee beta
- Broken and fails in unsee Beta. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsee-dl.