Azure / Azure/azure-functions-host
Proxy configuration with parameterized backend uri fails to load
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
Azure Functions Core Tools (2.0.1-beta.37)
#### Repro steps
1. Create a proxies.json configuration file with a parameterized route
2. Pass the parameter to the host name part of the backend
```json
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"createorder": {
"matchCondition": {
"methods": [
"POST"
],
"route": "/tenants/{tenantName}/people"
},
"backendUri": "https://{tenantName}.thedomain.com/people/",
"debug": true
}
}
}
```
3. `func host start`
#### Expected behavior
Func host to load configuration and route calls to backend using specified template
#### Actual behavior
Func host fails to process the configuration
`[2018-09-12 19:13:14] Error processig configuration of Function Proxies`
Contributor guide
Research direction
Start with the proxies.json configuration shown in the issue and run `func host start` using a parameterized backend URI. Trace the configuration-processing failure for the `{tenantName}` host parameter. Done means the host loads successfully and routes the request to the specified backend template.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100