通过 Python 发布时,Amazon EC2 出现内部服务器错误

通过 Python 发布时,Amazon EC2 出现内部服务器错误

我的 python API 和 ec2 实例有问题。当我尝试发布 json 时,我收到如下错误

500 内部服务器错误 {"error_message": "抱歉,无法处理此请求。请稍后重试。"}

我还有一个与此配置相同的 ec2 实例,并且该实例运行良好,没有任何问题。有人能帮我找到解决方案吗

Json数据格式如下

{
 "job_position":"Test Postion thomas1235",
 "eligibility_course_id":["1","2","3","4"],
 "eligibiltiy_course_ids":["1","2","3","4"],
 "eligibility_branch_id":["5","6","7","8"],
 "eligibiltiy_skill_ids":["10","23","24"],
 "location":["26","30","2","3"],
 "job_category":["1","4","7"],
 "sms_category":"1",
 "posting_date":"31/07/2014",
 "expiry_date":"31/08/2014",
 "job_type_id":"1",
 "job_type_other":"",
 "hiring_process":["1"],
 "job_description":"Test Description<\/p>",
 "company_name":"Test Company name",
 "company_profile":"Test company profile<\/p>",
 "company_url":"",
 "seo_title":"Test Seo Title",
 "seo_description":"Test Seo Description",
 "seo_keyword":"Test seo Keyward",
 "response":"1","how_to_apply":"",
 "terms_agreement":"1",
 "specify_terms_agreement":"",
 "employer_id":"1008369",
 "button_submitForm":"Post Job",
 "posted_by_id":"114",
 "template_name":"job_description"
}

pip freeze 在两种情况下都给我这个 o/p

Django==1.4.3
MySQL-python==1.2.4
amqp==1.0.13
anyjson==0.3.3
argparse==1.2.1
billiard==2.7.3.31
boto==2.34.0
celery==3.0.20
django-extensions==1.1.1
django-s3-cache==1.4.2
django-storages==1.1.8
django-tastypie==0.9.14
kombu==2.5.13
lxml==3.4.4
mimeparse==0.1.3
mock==1.0.1
phpserialize==1.3
python-dateutil==2.1
redis==2.7.6
requests==1.1.0
six==1.3.0
wheel==0.24.0
wsgiref==0.1.2

这两个服务器的配置相同。请帮我解决错误日志没有显示任何错误。:(

相关内容