Giter VIP home page Giter VIP logo

Comments (7)

robotdan avatar robotdan commented on June 25, 2024

@matthew-altman it looks like we are not de-serializing into the errors object on a non 2xx response.

Can you take a look?

@alonlong if you recreate using postman , insomnia or some rest client the JSON body response on a 400 will tell you what the validation error is that is causing the request to fail.

from go-client.

matthew-altman avatar matthew-altman commented on June 25, 2024

@alonlong It looks like you're throwing away the Errors, the second return value, from the auth.CreateUser() call. Can you please store that value and reply with the results of that? Thanks!

from go-client.

matthew-altman avatar matthew-altman commented on June 25, 2024

@alonlong Were you able to resolve this issue? Or do you have any additional error messages for us?

from go-client.

michaeldabbott avatar michaeldabbott commented on June 25, 2024

Pretty sure this is related to the issue I'm having currently.

A request to CreateUser returns zero validation errors but err is equal to EOF.
This is also occurs when you have a user who hasn't set a password yet and they try and login, no validation errors will be returned but err will be equal to EOF.
It'll also occur when a user tries to login who doesn't have an account instead of just returning a 401.

Any current work arounds? Happy to post any additional findings too.

from go-client.

robotdan avatar robotdan commented on June 25, 2024

@abbottm-go if you try to make the same request using a REST client such as insomnia or postman what is the error and status code?

If we can identify the actual error - then we should be able to recreate the scenario and symptom to resolve the core issue.

Thanks!

from go-client.

michaeldabbott avatar michaeldabbott commented on June 25, 2024

@robotdan

The status code is 200 when err is equal to EOF on the login function. That's using insomnia. This occurs with both the Login and CreateUser functions.

using go 1.14.2 :)

from go-client.

michaeldabbott avatar michaeldabbott commented on June 25, 2024

@robotdan
`
response, error, err := a.fusionAuth.CreateUser("", request)

if error != nil || err != nil {
	return nil, err
}
return response, nil

`

the err object is the one defaulting to EOF & errors object is just an empty map

from go-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.