• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

AJAX call fails with SyntaxError: Unexpected end of JSON input

javascriptphpjqueryajax


PHP Snippet 1:

var data = {};
 data['rawFiles'] =$('#projectIDs').val(); 
 data['metadata'] = $('#getData').val();
  data['type']=  $('#submitType').val();
  data['pid']='csv';
   data['command']='data/qcTest'

PHP Snippet 2:

$.ajax({type: "POST", url: posturl, data: JSON.stringify(data), dataType: 'json'})

Related Snippets

enable Apache http Authorization header

Update Total in checkout of Woocommerce with Ajax Request

Laravel csrf token mismatch for ajax POST Request

Apply session id from request header

CodeIgniter force_download is not working

Adding multiple items to WooCommerce cart at once

php mysql + create a friend request system

PHP random string generator

How to delete old images from public folder on update using Laravel

PHP Include for HTML?

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

Whats the point of running Laravel with the command 'php artisan serve'?

PHP Imap , php 7.4.3 on mac osx catalina

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

Creating command to backup MySql database in Laravel

About Contact Privacy policy Terms and conditions