Comments (5)
@mamaso if you're still checking - can you provide details :) i think you mean camelcasing binding data from the functions host side (Azure/azure-functions-host#2571), and making sure it is done recursively.
from azure-functions-nodejs-worker.
Yep, the issue is well summarized in Azure/azure-functions-host#2571
I added it here because I thought it made more sense to handle this in the language worker (as it's node specific behavior), rather than special casing it in the host.
One alternate possibility would be to have the camel case handled by the host if there are other languages which would like binding data in camel case form. A language worker describes to the host if it would like camel case or not in the json configuration that Chris whipped up.
from azure-functions-nodejs-worker.
You're the best Matt!! It'd be super nice to have formatting as a part of the language worker contract, but I lean towards your original suggestion of having binding data formatted by each language worker for cases like Python's lowercase_underscores (and for whatever other future languages we support). Thanks again!
from azure-functions-nodejs-worker.
Note: requires corresponding test change in azure-functions-host repo (Azure/azure-functions-host#2571)
from azure-functions-nodejs-worker.
Updated details: the bug was that the keys in context.bindingData
were camelCased one layer down but no further.
Before Fix:
context.bindingData.sys.MethodName
would be HttpTriggerJS1
After Fix:
context.bindingData.sys.methodName
would be HttpTriggerJS1
from azure-functions-nodejs-worker.
Related Issues (20)
- context.debug threw error HOT 2
- Javascript function with service bus trigger delivering byte message HOT 2
- Global `require` overwriting doesn't play nice with applicationinsights 2.5.1+ HOT 4
- Intermittent unknown error, lstat 'D:\home'
- Entry point errors should block app from running
- Increase timeout for `workerInit` and `functionEnvironmentReload` requests
- Create document that describes how to fix Did not find functions with language [node] HOT 1
- System.TimeoutException: The operation has timed out. at Microsoft.Azure.WebJobs.Script.Grpc.GrpcWorkerChannel.PendingItem.OnTimeout()
- Node 18; Func v4; VSCode on macOS: "No job functions found. Try making your job classes and methods public." HOT 3
- Create documentation that describes how to troubleshoot and fix `'0 functions loaded'` HOT 2
- A function can only be registered during app startup. HOT 3
- Support Node 20 HOT 1
- Azure Functions in a monorepo (Node.js) HOT 2
- Test - disregard HOT 1
- Download file from Azure Blob Storage hangs when retrieving final 1-2 blocks HOT 7
- Settings on serviceBus.clientRetryOptions is not upheld for serviceBusTopic triggers on the node worker HOT 2
- Azure function and Kudu console NODE version mismatch in linux OS azure function. HOT 8
- Node.js v4 migration - .funcignore additiona of .tsconfig.json HOT 3
- Worker init and func env reload pointing to the same app fails to register functions
- Unable to debug azure nodejs function locally HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-nodejs-worker.