Skip to content

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

Open

Description

@MarioG8

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! :)

Activity

  1. changed the title [-]Authentication-State (web-master) Logging In does not work ! [/-] [+]Chapter "Authentication-State" (web-master) - Logging In does not work ![/+] on Jan 18, 2021
  2. MarioG8 commented on Jan 21, 2021

    @MarioG8
    Author

    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;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions