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

Chapter "Authentication-State" (web-master) - Logging In does not work ! #25

Open
MarioG8 opened this issue Jan 18, 2021 · 1 comment
Open

Comments

@MarioG8
Copy link

MarioG8 commented Jan 18, 2021

Console:
Uncaught (in promise) Error: Network error: Response not successful: Received status code 400
ApolloError ApolloError.js:26
error QueryManager.js:138
notifySubscription Observable.js:140
onNotify Observable.js:179
error Observable.js:240
error observables.js:12
error observables.js:12
notifySubscription Observable.js:140
onNotify Observable.js:179
error Observable.js:240
notifySubscription Observable.js:140
onNotify Observable.js:179
error Observable.js:240
createHttpLink createHttpLink.js:93

Files from project still don't solve the problem.
Best Regards and Have a nice Coding! :)

@MarioG8 MarioG8 changed the title Authentication-State (web-master) Logging In does not work ! Chapter "Authentication-State" (web-master) - Logging In does not work ! Jan 18, 2021
@MarioG8
Copy link
Author

MarioG8 commented Jan 21, 2021

I think I have found the solution of this issue...! :-) I had to take it back a bit to /api/schema.js
I deleted the !"username"! from type Mutation - signIn
This seemed logical because we do not have such a field in signin.js file in
web/solutions/04-Authentication-State/pages/signin.js /
GraphQL requires you to be explicit about specifying which fields you would like returned from your query. Am I right?
Now everything works great so far ...I can log in and log out and application does not break :)
I wanted to make a "pull request" but I'm ashamed ... Please analyse my code and grant permission for a "pull request" if everything works fine...?!?
See You Soon and Have a nice Day or Night whatever you want;)

@MarioG8 MarioG8 closed this as completed Jan 21, 2021
@MarioG8 MarioG8 reopened this Jan 21, 2021
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

1 participant