【发布时间】:2022-06-22 08:42:43
【问题描述】:
我正在尝试使用 AWS amplify 实施注册。这是代码,
import { Auth } from 'aws-amplify';
async function signUp() {
try {
const { user } = await Auth.signUp({
username,
password,
attributes: {
email,
phone_number
}
});
console.log(user);
} catch (error) {
console.log('error signing up:', error);
}
}
但我收到以下 400 错误,
InvalidLambdaResponseException:无效的 lambda 函数输出:无效的 JSON
【问题讨论】:
标签: javascript reactjs amazon-web-services next.js aws-amplify