Comments (5)
Or like other languages we should tell people to use console.error()
. Trying to think whether all the FDK's should redirect stdout to stderr like you're suggesting.... ???
from fdk-node.
Yeah I think they should (if they can!)
Java does redirect stdout -> stderr for the same reason (so System.out.printf(..) goes to the function log rather than polluting the call contract)
Thinking that bugs caused by (e.g) an accidental systemout.print are going to be very difficult to debug as you'll just see a random Fn error relating to invalid protocols somwhere.
from fdk-node.
There are a number of frameworks that could be used. I had tried a few but didn't invest enough time to determine if anyone of them was ideal. Most seem to be focused on unit testing but one might work for us.
from fdk-node.
Hi, is this still an issue now that HTTP with UNIX sockets is used for function I/O instead of stdin/stdout?
from fdk-node.
it is not, thanks!
from fdk-node.
Related Issues (14)
- Export handler, hide FDK.handle HOT 1
- [object Object] returned by deployed function when invoked via curl HOT 6
- config values in YAML are not where expected in context
- override exit codes HOT 1
- Possible fdk-node on K8S issue? HOT 3
- stdin keep growing with input from all the POST HOT 3
- Support changes to Fn JSON format HOT 1
- [security] vulnerabilities being found in dependencies by npm
- ctx.headers returns values are array inside array
- FDK doesn't handle undefined response
- 405Method Not Allowed for all HTTP methods (GET/OPTIONS/PUT/DELETE) except POST HOT 1
- Doesn't seem to be producing the correct output HOT 1
- Handler inconsistent parameters HOT 1
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 fdk-node.