Error: 502 Bad Gateway nginx

Document ID : KB000118473
Last Modified Date : 16/11/2018
Show Technical Document Details
Issue:
Unable to activate the user . Getting  an error: 502 Bad Gateway nginx when activation link is opened.
Environment:
CA API Developer Portal -SaaS
Cause:
Issue was identified as browser using existing cookies from existing session.
Resolution:
If user has an existing session open with another user and if user opens an activation link the link fails with 502 error.
Hence the solution will be to check no session is open in same browser or open the link in another browser.
In theory it looked like portal was using the existing  session cookies.
Additional Information:
To replicate this issue 
1. login as admin
2. add a user and check notify user
3. email is sent to the user to which above admin user has an access.
4. now admin user click on activation link while he is still logged on the previous session of portal.
5. He gets 502 bad gateway error