Comments (12)
This fixes the error message, but there is still an issue with using Connects bodyParser middleware.
After posting data, eg: curl -d "foo=bar" http://localhost:9090
I console.log the response body:
{"[object Object]foo":"bar"}
Whereas without the bodyParser middleware this would just be {"foo":"bar"}
[object Object] <-- what is that guy doing in there!
from union.
I fixed it using connect master and union master. I didn't get anything like that.
@mediaupstream Try it once. If it still fails tell me what versions you are using.
from union.
Thanks @pksunkara - I must not have updated connect to master, it works now! On a side note, do you know how long it takes for these updated commits to make their way into npm?
from union.
A week at maximum.
from union.
I am still seeing this with Connect 2.0.3 and Union 0.3.0:
this.post('jsonTest', function (req, res) {
console.log("I Started");
console.log(this.req.body);
var self = this;
self.res.end("working\n");
});
And the Console logs (for req.body):
{ '[object Object]{"title": "A Title", "subTitle": "Subtitlle 1", "body": "First Post"}': '' }
from union.
@distracteddev union 0.3.0 works with connect >2.0.3 which is connect master.
from union.
Sorry for the noob question, but I've tried installing through NPM as well as from The git URL itself; how do you download the master version?
On 2012-04-04, at 5:47 PM, Pavan Kumar [email protected] wrote:
@distracteddev union 0.3.0 works with connect >2.0.3 which is connect master.
Reply to this email directly or view it on GitHub:
#25 (comment)
from union.
"dependencies": {
"connect": "http+git://github.com/senchalabs/connect.git"
},
"bundleDependencies": [
"connect"
]
from union.
The above method still doesn't work for me. Infact, it still installs connect 2.0.3. Even if you look on their master branch within GitHub, their version is listed at 2.0.3.
Where can I find this updated master version?
from union.
The Connect Repo was updated 2 hours ago to 2.1.0 and I reinstalled the module and checked that the correct version was installed. However, I am still getting the following output:
{ '[object Object]{"blogPost": {"title": "A Title", "subTitle": "Subtitlle 1", "body": "First Post"}}': '' }
from union.
@distracteddev I am seriously not seeing any error on my side. Can you give me more details? like flatiron version, director version etc ...
If you are in our IRC room #nodejitsu, we can discuss and pin point your problem.
from union.
Thanks! Much appreciated!
On 2012-04-06, at 1:25 AM, Pavan Kumar [email protected] wrote:
@distracteddev I am seriously not seeing any error on my side. Can you give me more details? like flatiron version, director version etc ...
If you are in our IRC room #nodejitsu, we can discuss and pin point your problem.
Reply to this email directly or view it on GitHub:
#25 (comment)
from union.
Related Issues (20)
- everyauth middleware problem HOT 4
- Where to put app.use() configurations? HOT 9
- Make v0.3.2 compatible with connect HOT 10
- SPDY support HOT 2
- Simple case from Readme.md HOT 2
- Add redirect method to http response stream HOT 3
- connect.session doesn't work for connect > 2.3.5 HOT 6
- Most basic Union server takes 200ms to respond, compared to 2ms for Express? HOT 3
- .
- Connect compatibility issue (bodyParser) HOT 1
- 0.10 compatibility only HOT 2
- GitHub repo description link mentions http://http// HOT 1
- Stream overwhelmed by `ResponseStream` causing memory leak HOT 2
- Not compatible with connect-static-file middleware
- Does this library support private key passphrase?
- Prototype Override Protection Bypass Vulnerability HOT 1
- Header test hangs
- DeprecationWarning: OutgoingMessage.prototype._headers is deprecated HOT 1
- Don't overshare
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 union.