fir*_*rst 1 php amazon-web-services amazon-cloudfront laravel
我在 laravel 框架上创建了一个带有 crud(创建、查看、更新、删除)操作的 AWS Lambda 函数。
我想更新记录:
User::where('email', 'balbla@gmail.com')->update(['name' => $request->get('name')]);
Run Code Online (Sandbox Code Playgroud)
但我有这个错误:
403 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Run Code Online (Sandbox Code Playgroud)
当我执行 http get 方法时,一切正常。我已阅读有关 CloudFront 的文档,但不知道如何修复它。我用过邮递员。如果我了解问题出在$request,我需要在 Amazon CloudFront 中创建分配。
fir*_*rst 12
那是我的错误。我打开邮递员并使用 GET 方法创建了新查询,并在原始文件中添加了 json:
{
"name" : "bla bla some name"
}
Run Code Online (Sandbox Code Playgroud)
当我删除此 json 时,一切正常
| 归档时间: |
|
| 查看次数: |
5956 次 |
| 最近记录: |