Share via

Error calling sync triggers (BadRequest) when trying to publish Azure functionapp

Mikko Yliniemi 6 Reputation points
2022-06-09T12:34:31.35+00:00

Hello,

I am developing Azure function app that uses System.IdentityModel.Tokens.Jwt library. I am trying to use workaround suggested for a problem that is causing "Could not load file or assembly System.IdentityModel.Tokens.Jwt" 1 problem to occur. When I try to use solution suggested for this problem: adding <_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput> to PropertyGroup of my csproj file I start to get following error when I try publish my code to Azure.

func azure functionapp publish <app-name>

Getting site publishing info...  
Uploading package...  
Uploading 25,01 MB [##############################################################################]  
Upload completed successfully.  
Deployment completed successfully.  
Syncing triggers...  
Syncing triggers...  
Syncing triggers...  
Syncing triggers...  
Syncing triggers...  
Syncing triggers...  
Error calling sync triggers (BadRequest). Request ID =  

With CLI_DEBUG = 1 I get this:

Azure.Functions.Cli.Common.CliException: Error calling sync triggers (BadRequest). Request ID = '<id>'.  
   at Azure.Functions.Cli.Helpers.RetryHelper.Retry(Func`1 func, Int32 retryCount, TimeSpan retryDelay, Boolean displayError) in D:\a\_work\1\s\src\Azure.Functions.Cli\Helpers\RetryHelper.cs:line 27  
   at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.SyncTriggers(Site functionApp) in D:\a\_work\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 520  
   at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishFunctionApp(Site functionApp, GitIgnoreParser ignoreParser, IDictionary`2 additionalAppSettings) in D:\a\_work\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line   
504  
   at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.RunAsync() in D:\a\_work\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 191  
   at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\_work\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 64  

TargetFrameworknetcoreapp 3.1
AzureFunctionsVersion v3

Thanks.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.