小编Rah*_*Jha的帖子

NX 构建:错误:[readCachedProjectGraph] 错误:没有可用的缓存 ProjectGraph

在尝试运行我的 Angular 13 内置应用程序时,抛出以下错误。不知道这是什么原因。任何帮助,将不胜感激。

错误:

"[error] Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.

If you are leveraging \`readCachedProjectGraph()\` directly then you will need to refactor your usage to first ensure that
the ProjectGraph is created by calling \`await createProjectGraphAsync()\` somewhere before attempting to read the data.

If you encounter this error as part of running standard \`nx\` commands then please open an issue on https://github.com/nrwl/nx

Make sure invoke 'node ./decorate-angular-cli.js' in your postinstall script.
The decorated CLI will compute …
Run Code Online (Sandbox Code Playgroud)

npm-start angular nrwl-nx

8
推荐指数
1
解决办法
4414
查看次数

Azure函数服务总线触发器运行多次

我在我的 Visual Studio 解决方案中添加了一个项目,它是服务总线主题触发功能。我正在使用默认代码运行应用程序,但面临问题。每当我向服务总线主题添加消息时,我的触发器对每条消息执行 5-6 次,最后出现以下错误。

错误

提供的锁无效。锁已过期,或者消息已从队列中删除。

我的代码:

[FunctionName("TopicFunction1")]
    public static void Run(
        [ServiceBusTrigger("myservicebustopicname", "subscriptionname", Connection = "ServiceBus_NS_ConnectionString")]string message,
        Int32 deliveryCount,
        ILogger log)
    {
        log.LogInformation($"ServiceBus topic trigger function processed message: {message}");
    }
Run Code Online (Sandbox Code Playgroud)

发货数量达到5-6个。

我检查了与此问题相关的多个问题,但它们没有帮助。下面是一个例子。 Azure Function App Azure 服务总线触发器触发两次

请帮忙解决这个问题。

azure azure-servicebus-topics

5
推荐指数
1
解决办法
6793
查看次数

如何从 Cosmos DB (SQL API) 中的两个容器进行查询

我是 Cosmos db 的新手。我选择了 cosmos db(核心 sql),创建了一个包含两个容器的数据库,分别是 EmployeeContainer 和 DepartmentContainer。现在我想查询这两个容器并希望获取员工详细信息以及相关部门的详细信息。我坚持了一点,需要帮助。

下面是我的容器的结构。
EmployeeContainer : ID, Name, DepartmentID
DepartmentContainer: ID, Name

提前致谢。

azure-cosmosdb azure-cosmosdb-sqlapi

1
推荐指数
1
解决办法
4843
查看次数