正如标题所示,我不再能够从lambda向我的apiGateway发出请求,因为结果返回以下响应。
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nBad request.\nWe 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.\n<BR clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n<PRE>\nGenerated by cloudfront (CloudFront)\nRequest ID: k1qZjmDT_kv8462L0aF3susozg_A1OwFoM1piBKU2CT_m5tV9_aArQ==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></HTML>
这在以前是有效的,但在某种程度上它已经停止工作。如果我用不同的方法尝试另一个apiGateway,它可以工作。我在这里写了这篇文章,因为我没有一个允许技术支持查询的AWS帐户。
所有基础设施都是使用无服务器应用程序模型构建的。此外,lambda直接与Api网关通信,而不是与任何指定的域通信。没有应用程序有Cloudfront或任何附加到它的东西,所以这条消息非常奇怪。如果我使用postman,请求可以工作,所以它让我觉得有些东西弄乱了DNS,但我有点天真地认为亚马逊会把这样的事情搞砸。
发布于 2020-05-18 07:26:29
我通过GET请求传递正文数据,因此AWS Api Gateway主动拒绝了该请求。给出的信息就是不够有帮助。
https://stackoverflow.com/questions/61851599
复制相似问题