Azure / Azure/static-web-apps

Error in processing api build artifacts: the file 'functions.metadata' does not specify any bindings

Open
#1,687 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

When deploying, Build provides a 'functions.metadata'.

it's store on the root folder of the web api; but the task AzureStaticWebApp declare an error
"Error in processing api build artifacts: the file 'functions.metadata' does not specify any bindings "

Task:
```

# =========================
# Deploy
# =========================
- task: AzureStaticWebApp@0
displayName: '🚀 Deploy to Azure Static Web App'
inputs:
azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_GENTLE_MOSS_08B360D03)
app_location: 'dist' # relatif repo
api_location: 'api_publish' # relatif repo
skip_app_build: true
skip_api_build: true
verbose: true
```

**Expected behavior**
deployment of API

**Screenshots**

Image

**Device info (if applicable):**
- Linux

**Additional context**
I previously try to uise the task with 'automatic' build; but there was a failuire without any commebt; so i started to build manually and use the tast just for deployment

---- part of functions.metadata
```
[
{
"name": "Addresses_GetById",
"scriptFile": "api.dll",
"entryPoint": "api.functions.AddressFunction.GetAddressById",
"language": "dotnet-isolated",
"properties": {
"IsCodeless": false
},
"bindings": [
{
"name": "req",
"direction": "In",
"type": "httpTrigger",
"authLevel": "Anonymous",
"methods": [
"get"
],
"route": "addresses/{id:int}",
"properties": {}
},
{
"name": "$return",
"type": "http",
"direction": "Out"
}
]
},
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.