Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signIn not working #23

Open
RedHoodJT1988 opened this issue Oct 19, 2020 · 3 comments
Open

signIn not working #23

RedHoodJT1988 opened this issue Oct 19, 2020 · 3 comments

Comments

@RedHoodJT1988
Copy link

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.

@P33tr
Copy link

P33tr commented Oct 30, 2020

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

@MarioG8
Copy link

MarioG8 commented Jan 23, 2021

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

@JungSangHyup
Copy link

JungSangHyup commented May 27, 2021

let's try

pages/signin.js ->

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

it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants