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

API 500 Error: /admin/identity [TypeError: Cannot read property 'getEnrolledMember' of undefined] #107

Open
enbochen opened this issue Mar 26, 2017 · 1 comment

Comments

@enbochen
Copy link
Contributor

Tried to POST: http://localhost:8080/admin/identity with json body {"account":"Alfa_Romeo", "participantType":"Manufacturer"}, it will return 500 Internal Server Error. The docker log of application shows [TypeError: Cannot read property 'getEnrolledMember' of undefined].

This problem also happened with participants: Jaguar_Land_Rover, Beechvale_Group, Viewers_Alfa_Romeo, Every_Car_Leasing, Regionwide_Vehicle_Contracts, etc.. However, participants: Toyota, Milescape, LeaseCan, etc. can successfully logged in.

(Maybe it's the problem of securityContext.getEnrolledMember. securityContext is undefined.)

Thanks.

@liam-grace
Copy link
Contributor

In order to use the REST api, you need to set a cookie in the request called user with the name of the participant you wish to use

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

2 participants