诊断Azure上的错误岩石剪刀样品代码

发布于 2025-02-10 11:49:21 字数 1855 浏览 3 评论 0原文

我目前正在通过 Azure Rock Paper剪刀在Microsoft网站上找到的示例代码。我已经通过Azure构建了该应用程序,我已经测试并发布了自定义视觉资源。我的Azure资源组看起来像 this

当我运行应用程序打开时,计数为三个,拍照,然后停止运行。屏幕刚刚坐在那里,当我进入Azure的日志流时,我会收到以下错误:

(Node:23732)[DEP0005] extrecationWarning:Buffer()由于安全性和可用性问题而被弃用。请使用buffer.alloc(),buffer.alocunsafe()或buffer.from()方法代替。 在\ ApplicationInsights:远程计算机[ 'The URL object is failed to create.',TypeError [ERR_INVALID_URL]: Invalid URLat new NodeError (node:internal/errors:371:5)at onParseError (node:internal/url:552:9)at new URL (node:内部/URL:628:5)在nodeclient.telemetryclient.trackdependenty(c:\ progra〜2 \ 2 \ 2 \ 2 \ siteEx〜1 \ nodeap〜1 \ 1 \ 293739〜1.3 \ nodejs \ nodejs \ node_modules \ node_modules \ node_modules \ applicationinsights \ applicationinsights \ out \ out \ out \ uper \ liblary \ liblary \ telemeterryclient.108: 36)在ClientRequest。 (c:\ progra〜2 \ 2 \ siteEx〜1 \ nodeap〜1 \ 293739〜1.3 \ nodejs \ node_modules \ node_modules \ applicationInsights \ out \ autocollection \ autocollection \ httpdpdependencies.js:224:24:224:24)在Client Request.clsbind(C clsbind(c:224)) siteex〜1 \ 1 \ nodeap〜1 \ 293739〜1.3 \ nodejs \ node_modules \ cls-hooked \ cls-hooked \ context.js:172:17)在clientreqest.emit(node:events:evest:390:28) 〜2 \ 2 \ nodeap〜1 \ 293739〜1.3 \ nodejs \ node_modules \ node_modules \ emitter-listener \ listerer.js:134:21)在tlsocket.socket.socket.socketerorlistener(node:_http_client:_htttp_client:4447:9)at tlsocketerrorlistener( :events:390:28){输入:'https://< put_host_server_here>:443',code:'err_invalid_url'}]

有人知道我该如何解决这个问题吗?

I am presently working through the Azure Rock Paper Scissors sample code found on Microsoft's website.I have built the application through Azure, and I have tested and published the Custom Vision resource. My Azure resources group looks like this.

When I run the application it opens, counts to three, takes a picture, and then stops functioning. The screen just sits there and when I go to Azure's Log Stream I get the following error:

(node:23732) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use node --trace-deprecation ... to show where the warning was created)
Listening on \.\pipe\51f320fe-45d4-4c1b-8d7b-2dde79f0a294
ApplicationInsights:TelemetryClient [
'The URL object is failed to create.',TypeError [ERR_INVALID_URL]: Invalid URLat new NodeError (node:internal/errors:371:5)at onParseError (node:internal/url:552:9)at new URL (node:internal/url:628:5)at NodeClient.TelemetryClient.trackDependency (C:\PROGRA~2\SITEEX~1\NODEAP~1\293739~1.3\nodejs\node_modules\applicationinsights\out\Library\TelemetryClient.js:108:36)at ClientRequest. (C:\PROGRA~2\SITEEX~1\NODEAP~1\293739~1.3\nodejs\node_modules\applicationinsights\out\AutoCollection\HttpDependencies.js:224:24)at ClientRequest.clsBind (C:\PROGRA~2\SITEEX~1\NODEAP~1\293739~1.3\nodejs\node_modules\cls-hooked\context.js:172:17)at ClientRequest.emit (node:events:390:28)at ClientRequest.emitted (C:\PROGRA~2\SITEEX~1\NODEAP~1\293739~1.3\nodejs\node_modules\emitter-listener\listener.js:134:21)at TLSSocket.socketErrorListener (node:_http_client:447:9)at TLSSocket.emit (node:events:390:28) {input: 'https://<PUT_HOST_SERVER_HERE>:443',code: 'ERR_INVALID_URL'}]

Does anyone know how I might fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尸血腥色 2025-02-17 11:49:21

我通过查看和纠正config.json来解决此问题。

I fixed this issue by looking at and correcting the config.json.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文