Changed json['error'] in receiving(); Tested some parts of receiving() in callback()