maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration
http://python-wordpress-xmlrpc.rtfd.org
MIT License
380 stars 129 forks source link

Solve “500 Internal Server Error” #119

Closed xiaoxixiaoxi closed 6 years ago

xiaoxixiaoxi commented 6 years ago

Solve I tried to post articles via python but there are errors why Can help me, thank you Error message:

Traceback (most recent call last): File "/Users/apple/PycharmProjects/爬虫学习/wordpress.py", line 17, in client.call(NewPost(post)) File "/Users/apple/anaconda3/lib/python3.6/site-packages/wordpress_xmlrpc/base.py", line 37, in call raw_result = server_method(*args) File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1112, in call return self.send(self.name, args) File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1452, in request verbose=self.verbose File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1154, in request return self.single_request(host, handler, request_body, verbose) File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1187, in single_request dict(resp.getheaders()) xmlrpc.client.ProtocolError: <ProtocolError for www.地址.com/xmlrpc.php: 500 Internal Server Error>

maxcutler commented 6 years ago

A 500 error is being returned from your server. You'll have to check your server logs to understand what the issue is, it's impossible to diagnose from the client library.