web icon indicating copy to clipboard operation
web copied to clipboard

signIn not working

Open RedHoodJT1988 opened this issue 5 years ago • 3 comments

I have been trying for the past three days to get the signIn mutation to work for the web client. I keep receiving an error when I try to sign in. Error:

Uncaught (in promise) Error: Network error: Response not successful: Received status code 400

I can use the signIn mutation just fine on the backend through GraphQL Playground. I have deleted my files and copied the code from the project into brand new files and I am still receiving the error. I don't know what is causing the error.

RedHoodJT1988 avatar Oct 19 '20 21:10 RedHoodJT1988

wouldn't be those backticks could it be. check the gql is enclosed in ` not '

P33tr avatar Oct 30 '20 17:10 P33tr

Try my approach with schema.js...I've finished book ..nearly ...(3/4) and so far is working fine ... Best Regards :)

MarioG8 avatar Jan 23 '21 08:01 MarioG8

let's try

pages/signin.js ->

const SIGNIN_USER = gql mutation signIn($email: String!, $password: String!){ signIn(username: "", email: $email, password: $password) }

it works!

JungSangHyup avatar May 27 '21 04:05 JungSangHyup