Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Cannot login, blank red box, page shows JS errors #11

Open
adityavb opened this issue Mar 8, 2022 · 14 comments
Open

Cannot login, blank red box, page shows JS errors #11

adityavb opened this issue Mar 8, 2022 · 14 comments

Comments

@adityavb
Copy link

adityavb commented Mar 8, 2022

When attempting to login with correct or incorrect credentials a blank red box appears above the login button. Browser console shows error as screenshot attached.
Screen Shot 2022-03-07 at 11 45 00 AM

@adityavb
Copy link
Author

adityavb commented Mar 8, 2022

ECS logs:

[2022-03-08 16:31:28 +0000] [6] [INFO] Starting gunicorn 20.0.4

[2022-03-08 16:31:28 +0000] [6] [INFO] Listening at: http://0.0.0.0:80 (6)
[2022-03-08 16:31:28 +0000] [6] [INFO] Using worker: sync
[2022-03-08 16:31:28 +0000] [8] [INFO] Booting worker with pid: 8
[2022-03-08 16:31:28 +0000] [9] [INFO] Booting worker with pid: 9
[2022-03-08 16:31:28 +0000] [10] [INFO] Booting worker with pid: 10
sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631
sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631
sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631

@rathialok901
Copy link

I am having the exact same problem, the Cognito part has been correctly setup as I can do a manual test authentication with Lambda and it returns successful auth and the directory Mapping from DynamoDB.

@rathialok901
Copy link

@adityavb Try Connecting to the SFTP Endpoint and see if that is working as in the backend the web is opening an SFTP connection and if that doesnt work then Web Logons will fail too.

@adityavb
Copy link
Author

adityavb commented Apr 20, 2022

@rathialok901 yes I am able to login to the server directly using OpenSSH, FileZilla and WinSCP. Still having the same issue. Is your setup working now ?

@rathialok901
Copy link

@adityavb Yes I have web logins working but the UI experience is not great and is pretty slow. Can you switch your browser to developer mode and see what is happening to your request and that could help point out the problem.

@sapra5379
Copy link

Team - I am deploying this solution in Bahrain region. I wanted to understand what is the use of AWS Lambda@Edge and why it is need to be deployed only in Virginia Region.
Kindly let me know at the earlies @rathialok901 or @adityavb

@sapra5379
Copy link

@rathialok901 @adityavb @ajorg-aws - I am able to set it up, However - I am getting red screen while login. Can anyone of you available for a quick screenshare.
Need to check dynamoDB and deployment.

@rathialok901
Copy link

Team - I am deploying this solution in Bahrain region. I wanted to understand what is the use of AWS Lambda@Edge and why it is need to be deployed only in Virginia Region. Kindly let me know at the earlies @rathialok901 or @adityavb

That is because CloudFront, although a Global Service has its control plane in us-east-1 and that is why you are deploying the Lambda@edge in that region.

@rathialok901
Copy link

@rathialok901 @adityavb @ajorg-aws - I am able to set it up, However - I am getting red screen while login. Can anyone of you available for a quick screenshare. Need to check dynamoDB and deployment.

I can work with you tommorrow to look at what is going on, In what timezone are you available.

@sapra5379
Copy link

@rathialok901 Its great to hear from you, I am reachable at aakashsapra93@gmail.com
I am available in between 1PM IST to 6 PM IST or 11 PMIST to 1 AM IST. Let me know if this works for you , will send the invite or drop me hello on my e-mail.

@sapra5379
Copy link

I am getting authentication error, it must be something wrong at my DynamoDB mapping.

Failed to authenticate user asapra with Cognito

@dagarkatyal
Copy link
Contributor

I deployed everything twice but I am getting CORS errors when I click login button.
Any thoughts? What am i missing here? any account level setting?
here is the screenshot..

Screen Shot 2022-07-22 at 12 57 11 AM

@nagarjuna-jammula
Copy link

Hello,

We have deployed the solution. User created, dynamo DB mapping is completed but facing the same issue as original. It shows red box below when trying to login.

Is there already a solution for this ?

@lalithprasad12
Copy link

Hi, Any update on the issue. We are facing the same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants