-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unknown error, the response body from fetch is: undefined #1738
Comments
I am in the same issue |
@isamsamet Try adding this within the authenticate user function and use the log to to see what is needing defined:
Some of these will be required depending on the User Pool configuration. Have a look at use case 23 and 27 for how these blocks should be configured. Use cases here. |
I removed the remember device and set it to no. It worked. |
working |
Closing the issue as you will no longer receive |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
I am using in Node.js the following versions
"amazon-cognito-identity-js": "^2.0.29",
"node-fetch": "^2.2.0",
I am trying to signUp and authenticateUser in my app.
Initially I was getting "fetch undefined" when I call singUp. Which was fixed by adding the node-fetch library. Now I can successfully signUp users.
Now I am getting the error "Unknown error, the response body from fetch is: undefined" when I call authenticateUser method. The code is as following.
`app.post('/login', (req, res) => {
var authenticationData = {
Username: req.body.email,
Password: req.body.password,
};
The text was updated successfully, but these errors were encountered: