gpt4 book ai didi

azure - Microsoft.Azure.Storage.Common : No connection could be made because t he target machine actively refused it

转载 作者:行者123 更新时间:2023-12-03 02:12:00 25 4
gpt4 key购买 nike

*[2022-07-21T11:29:11.318Z] The listener for function 'Functions.BlobTriggerFunction' was unable to start.
[2022-07-21T11:29:11.319Z] The listener for function 'Functions.BlobTriggerFunction' was unable to start. Microsoft.Azure.Storage.Common: No connection could be made because the target
machine actively refused it. System.Net.Http: No connection could be made because the target machine actively refused it. System.Private.CoreLib: No connection could be made because t
he target machine actively refused it.
[2022-07-21T11:29:12.311Z] An unhandled exception has occurred. Host is shutting down.
[2022-07-21T11:29:12.312Z] Microsoft.Azure.Storage.Common: No connection could be made because the target machine actively refused it. System.Net.Http: No connection could be made beca
use the target machine actively refused it. System.Private.CoreLib: No connection could be made because the target machine actively refused it.*

我已经使用 IntelliJ IDEA Java 创建了 azure 函数 blob 触发器,此后我尝试在本地运行它,然后它给了我这个错误。

public class BlobTriggerFunction {
/**
* This function will be invoked when a new or updated blob is detected at the specified path.
* The blob contents are provided as input to this function.
*/
@FunctionName("BlobTriggerFunction")
@StorageAccount("AzureWebJobsStorage")
public void run(
@BlobTrigger(name = "content", path = "ys01/{name}", dataType = "binary",
connection = "AzureWebJobsStorage") byte[] content,
@BindingName("name") String name,
final ExecutionContext context
) {
context.getLogger().info("Java Blob trigger function processed a blob. Name: " + name + "\n Size: "
+ content.length + " Bytes");
System.out.println("logger ");
}

}

最佳答案

No connection could be made because the target machine actively refused it.

  • 这可能是因为您的端口已被某些其他功能或进程使用,因此请更改为不同的端口并检查。

  • 还要确保您的本地存储模拟器正在运行。如果没有,请启动 Azure 存储模拟器。

引用one of the workarounds由 Mayank Bargali 在问答论坛中给出。

关于azure - Microsoft.Azure.Storage.Common : No connection could be made because t he target machine actively refused it,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73065562/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com