I just installed nodejs v0.6.12 on Ubuntu 10 on Amazon AWS.
The code runs without any issues on my computer (running 0.6.11 on ubuntu) but on the AWS server, I get a JSON parse error:
SyntaxError: Unexpected token u
at Object.parse (native)
The error appears to be coming from the line where I am trying to parse the request from the client (containing a JSON array). It does not appear that I am using any unassigned variable in the line where the error appears to be coming from.
Once again, the code works on my computer - I do not believe I should need any modules for JSON since its built-in with nodejs. Any help in troubleshooting will be appreciated.
The line throwing the error is given below:
obj = JSON.parse(req.rawBody); // I tried both - first by assigning obj an empty value
var obj = JSON.parse(req.rawBody); //
Thanks.
The issue was that the new version of Express (3.0) does not appear to support req.rawBody anymore - the old version did.
Related
error image
I'm trying to send the request to verify the Otp for the authentication in my web app but this error pops up and I'm not sure how to handle this as I've just started to learn the Web Dev. If anybody has some idea on how to fix this issue please tell me.
I have tried updating my node-parser module and imported it my server.js file correctly. Also I deleted the package.json.lock file and again did npm start to create a fresh file and all of that doesn't seem to work.
I have this "
error [SyntaxError: JSON Parse error: Unrecognized token '<']"
in my code.
It's an android app I have been working on for about a year. The app was compiling and run successfully before I took a break.
when I wanted to run the code again I started getting that error.
it's occuring when I load an image into the app to scan. I don't know it's origin or why it's popping up since the code was working perfectly.
anyone to help?
I have tried to reset cache, reload the code or reinstall the dependencies. nothing is working
I have updated the neo4j.conf file but can't seem to get rid of this error after changing the file and restarting. I am just trying to load a json file through neo4j and have included the line apoc.import.file.enabled=true on the neo4j.conf but doesn't seem to be working for me, I'm still getting the error message:
Failed to invoke procedure 'apoc.load.json' Caused by
java.lang.RuntimeException : Import from files not enabled, please set
apoc.import.file.enabled=true in your neo4j.conf
I am using neo4jCE 3.2.3 and have used the right file path for the json file as it previously worked on my desktop computer (I'm just trying to replicate it on my laptop) and I am using apoc 3.2.0.4 version plugin. The procedure apoc.load.json is also there when I call all procedures directory.
When i put the application in the webserver, i receive that error in log file from app/webroot/error_log but the app works normally in localhost.
[14-May-2015 22:51:59] PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /public_html/app/webroot/index.php on line 29
this release will not work on php < 5.3.0
Please, update Your server config like PHP Configuration
I am unable to run a particular ASP page in my website. It is throwing the below error.
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/includes/conferenceRoom/init.asp, line 13
800401f3.
However my page is running well in Prod server but it is throwing error in my dev derver. I am unable to find the root cause for this error.
The line 13 is to create obj for my calender app in ASP:
set objCal= server.CreateObject("bsCal.cDate")
Any one please help me to resolve this error.
Make sure the COM object (i.e. bsCal.cDate) is registered. Find its DLL and register it using regsvr32
Assuming you copied your dll to the folder d:\objects.
In a command prompt type:
regsvr32 d:\objects\YourDll.dll