Skip to content

Loading…

POST 500 (Internal Server Error) #378

Closed
azhar-js opened this Issue · 4 comments

4 participants

@azhar-js

Hi there.. My app runs perfect on localhost.. However when I deploy it I get this error..
I am making a POST request using Ajax to upload a form data.. and use Socket .io to get the uploaded status...
I get this client side error.. on Chrome consoles saying
POST http://afsongs.nodetu.jit.su/upload 500 (Internal Server Error)

here is my package.json
{
"name": "nodetu",
"subdomain": "afsongs.nodetu",
"scripts": {
"start": "fileupload.js"
},
"version": "0.0.1-8",
"engines": {
"node": "0.8.x"
},
"dependencies": {
"ejs": "0.8.x",
"formidable": "1.0.x",
"express": "3.0.x",
"socket.io": "0.9.x",
"jquery": "1.7.3"
}
}

@sam3k

I get this too. If you try to deploy again it usually works the second time; but it does mean that you have to increase the version of your app unnecessarily.

@cronopio

Is still this an issue?, if yes please past the whole log when you do jitsu deploy

In most of the times this kind of problems are just temporal problems.

@azhar-js

The issue is resolved.. Dont know how.. but My app works fine... thanks for the fix ...

@azhar-js

@Sam3k are u making a ajax POST request.. and using Socket.io... then use xhr..after i use this it worked
$.ajax({
url: 'upload', //server script to process data
type: 'POST',
xhr: function() { // custom xhr
myXhr = $.ajaxSettings.xhr();
return myXhr;
},
//Ajax events
// Form data
data: formData,
//Options to tell JQuery not to process data or worry about content-type
cache: false,
contentType: false,
processData: false,
success: function(data){
alert('thanks');
}
});

@blakmatrix blakmatrix closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.