Heroku上的RESPONSE 500和localhost Python请求上的RESPONSE 200

问题描述

在Heroku和localhost

enter image description here

enter image description here

响应200(在localhost上)很好

响应500(在Heroku上)其BAD。如何解决

url = 'https://animego.org/anime/filter/status-is-released/apply?&direction=desc&page='
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/54.0.2840.90 Safari/537.36,','Origin': 'http://example.com','Referer': 'http://example.com/some_page'}
response = requests.request("get",url,headers=headers)
print(response)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)