Does xmlrpc deny access?
-
When I test push articles via xmlrpc in my site I realize xmlrpc stop working when I push about 10.000 post. After that I can push any other post, it’s said that my code has invailid token. Does xmlrpc deny access? How can I continue push article?
Sory for my bad English!
-
There’s nothing in WordPress itself that limits access to that file, but it’s entirely possible that a plugin or your hosting provider itself could be rate-limiting it for “security” reasons.
Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.
If that makes no difference, then I recommend contacting your hosting provider.
I’ve try to deativate all plugin, change user, but it still deny. I post same article to another website in same hosting and it work, so I dont think that is hosting provider problem.
I use python to post to wordpress site use xmlrpc. I try to post to another site in the same vps, it’s work, then I try to request post list from another site in same host, it’s work too. And I try to request post list from site which I can’t post article to, the same error happen. I post error here:
/usr/local/lib/python3.5/dist-packages/werkzeug/filesystem.py:63: BrokenFilesystemWarning: Detected a misconfigured UNIX filesystem: Will use UTF-8 as filesystem encoding instead of ‘ascii’
BrokenFilesystemWarning)
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 2000, in __call__
return self.wsgi_app(environ, start_response)
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File “/usr/local/lib/python3.5/dist-packages/flask/_compat.py”, line 33, in reraise
raise value
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1988, in wsgi_app
response = self.full_dispatch_request()
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/usr/local/lib/python3.5/dist-packages/flask/_compat.py”, line 33, in reraise
raise value
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1639, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python3.5/dist-packages/flask/app.py”, line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File “/home/autol/Linh/app/myapp.py”, line 71, in wptest
all = wp.call(GetPosts({‘number’: 100}))
File “/usr/local/lib/python3.5/dist-packages/wordpress_xmlrpc/base.py”, line 37, in call
raw_result = server_method(*args)
File “/usr/lib/python3.5/xmlrpc/client.py”, line 1092, in __call__
return self.__send(self.__name, args)
File “/usr/lib/python3.5/xmlrpc/client.py”, line 1432, in __request
verbose=self.__verbose
File “/usr/lib/python3.5/xmlrpc/client.py”, line 1134, in request
return self.single_request(host, handler, request_body, verbose)
File “/usr/lib/python3.5/xmlrpc/client.py”, line 1150, in single_request
return self.parse_response(resp)
File “/usr/lib/python3.5/xmlrpc/client.py”, line 1316, in parse_response
p.feed(data)
File “/usr/lib/python3.5/xmlrpc/client.py”, line 438, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 51, column 18I use python xmlrpc:
# pip install python-wordpress-xmlrpc
from wordpress_xmlrpc import Client, WordPressPostAre there any entries in your server error log at the specific date/time you tried to use the script?
I think I can try again and check log to find date/time, but what happen with date/time I use the script? I try with another domain on same host, I can push 23940 post. Number of post are different between two domain with same error.
I’ve found that if I empty tables:
wp_posts
wp_postmeta
wp_term_relationshipsI can continue push article to web.
It’s hard to say, that’s why I’m asking for the error log entry that’s recorded when the script fails.
- The topic ‘Does xmlrpc deny access?’ is closed to new replies.