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

Request failed with Internal server error 500 on accessing the Cloudfront url from browser, but the lambda logs have error 400 #45

Open
sfc-gh-spanda opened this issue Dec 15, 2022 · 1 comment
Assignees

Comments

@sfc-gh-spanda
Copy link

Hi Team,
I have set up Cognito OAuth to be in front of a CloudFront distro that uses an S3 bucket as the origin.Accessing the CloudFront distro I get the following error from the Lambda@Edge function:

"error": {
    "message": "Request failed with status code 400",
    "stack": "Error: Request failed with status code 400\n    at createError (/var/task/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/var/task/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/var/task/node_modules/axios/lib/adapters/http.js:269:11)\n    at IncomingMessage.emit (events.js:412:35)\n    at IncomingMessage.emit (domain.js:475:12)\n    at endReadableNT (internal/streams/readable.js:1333:12)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)"
},
"logName": "auth",
"date": "2022-12-15T10:06:07.472Z"

}

@noyceguy
Copy link
Contributor

@sfc-gh-spanda thank you for opening this issue. Are you able to successfully integrate with Cognito? We'll work on updating the error code.

@noyceguy noyceguy self-assigned this Jan 12, 2023
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