Giter Club home page Giter Club logo

Comments (7)

deinok avatar deinok commented on May 27, 2024

Hmm, can you try to run the mutation without the C# client?

Seems more like a Server-side error than from the client.

If this is not the case, report back and I will be glad to help.

from graphql-client.

kunchit avatar kunchit commented on May 27, 2024

Server-side it OK

this test query

http://35.240.144.126/graphiql

and you can test with query

mutation{
uploadSerialNumbers(
lot: 887
start: 1
end: 10
x: "182f000d767dc7695a7793dfce32"
y: "04ef74f2738eec34daf98478afdc"
issue_date: 1531101827922
key_version: 1
)
}

Thank you for help.

from graphql-client.

deinok avatar deinok commented on May 27, 2024

Thanks @kunchit , Let the server enabled until I report back, tomorrow I will debug the issue.

from graphql-client.

deinok avatar deinok commented on May 27, 2024

You have an error in the way you return errors in GraphQL Server.

to have access to the message, you are doing error[0].message.message -> value
The Spec, requires something like error[0].message -> value

Also, notice, that you dont have the GET endpoint enabled, so you need to use POST based methods

from graphql-client.

deinok avatar deinok commented on May 27, 2024

Code to check:

var client=new GraphQL.Client.GraphQLClient("http://35.240.144.126/graphql");
client.DefaultRequestHeaders.Add("auth-user", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YjFhMjQzYjY4NzI3ZjcxZjAzZTRkODUiLCJpYXQiOjE1MzAyNjQ0MDgsImV4cCI6NTUzMDI2NjIwOH0.oe9zPy9mbyx4SMUTPXyJ60AYMxAmsVDo3Cdiqey4RhI");
client.DefaultRequestHeaders.Add("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YjFhMjQzYjY4NzI3ZjcxZjAzZTRkODUiLCJpYXQiOjE1MzAyNjQ0MDgsImV4cCI6NTUzMDI2NjIwOH0.oe9zPy9mbyx4SMUTPXyJ60AYMxAmsVDo3Cdiqey4RhI");
var res =client.PostQueryAsync("mutation{uploadSerialNumbers(lot: 887,start: 1,end: 10,x: \"182f000d767dc7695a7793dfce32\",y: \"04ef74f2738eec34daf98478afdc\",issue_date: 1531101827922,key_version: 1)}").Result;

from graphql-client.

kunchit avatar kunchit commented on May 27, 2024

It Success.
Thank you I really appreciate your help.

from graphql-client.

deinok avatar deinok commented on May 27, 2024

Np, Im glad to help :)

from graphql-client.

Related Issues (20)

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.