Giter Site home page Giter Site logo

Comments (4)

dgndgn avatar dgndgn commented on August 20, 2024 1

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.

anoduck avatar anoduck commented on August 20, 2024 1

@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.

anoduck avatar anoduck commented on August 20, 2024

@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.

anoduck avatar anoduck commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.