我正在尝试为 Kinesis 设置 DLQ。我使用了 SQS 并将其设置为失败时的 Kinesis 目标。
Kinesis 附加到始终抛出错误的 lambda,因此事件将立即发送到 SQS DLQ。
我可以看到 SQS 中的事件,但是缺少事件的有效负载(我作为事件的一部分发送的 json ),在 lambda 中,如果我在抛出异常之前打印事件,我可以看到 base64 编码的数据,但不在我的 DLQ 中。
有没有办法将事件数据也发送到 DLQ?我希望能够正确检查错误原因,并在修复完 lambda 中的问题后将事件放回 Kinesis。
我创建了一本故事书(没有 create-react-app 构建),并将其部署到 npm。\n当尝试在不同的 React 应用程序中使用其组件时,假设与组件一起渲染的 .png 图像根本不会加载(对于 .svg 图像,我已经设置了工作正常的配置)。
\n在故事书中,我尝试导入 png,如下所示:
\nimport borderPurpleDashed from '../../assets/borders/border-purple-dashed.png';\n\nborder-image: url(${borderPurpleDashed}) 30 / 1.5rem round;\nRun Code Online (Sandbox Code Playgroud)\n然后在react-app中,当导入组件时,它尝试从自己的本地主机加载图像
\n\xe2\x80\x9chttp://localhost:3000/a87d8c2e5e8293b0372b.png\xe2\x80\x9d\nRun Code Online (Sandbox Code Playgroud)\nwebpack.config.js
\nconst path = require('path');\nconst webpack = require('webpack');\nconst svgrLoader = require.resolve('@svgr/webpack');\n\nmodule.exports = {\n mode: "production",\n entry: './src/index.ts',\n output: {\n filename: 'index.js',\n path: path.resolve(__dirname, 'dist'),\n libraryTarget: 'umd',\n clean: true\n },\n devtool: 'source-map',\n resolve: {\n extensions: [".tsx", ".ts", ".jsx", ".js", ".json"],\n modules: ['node_modules']\n },\n externals: {\n react: "react"\n },\n module: {\n rules: [\n …Run Code Online (Sandbox Code Playgroud) 我正在尝试将我的 springboot 项目部署到 Azure 应用服务中。我创建了一个应用服务并通过 FTP 上传了两个文件:test.war 和 web.config,如他们的教程中所述。
网页配置
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%JAVA_HOME%\bin\java.exe"
arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar "%HOME%\site\wwwroot\test.war"">
</httpPlatform>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我正在将 war 文件上传到站点/wwwroot 并将 web.config 文件也放在那里。
我的问题是:如何执行war文件?它应该在我自动完成部署时发生吗?因为现在我得到的只是服务不可用,Http 错误 503。
谢谢
amazon-sqs ×1
aws-lambda ×1
azure ×1
java ×1
reactjs ×1
spring-boot ×1
storybook ×1
webpack-5 ×1