Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmlrpc新建分类报500 #1440

Closed
Sundae97 opened this issue May 13, 2022 · 4 comments · Fixed by #1443
Closed

xmlrpc新建分类报500 #1440

Sundae97 opened this issue May 13, 2022 · 4 comments · Fixed by #1443
Assignees

Comments

@Sundae97
Copy link

使用xmlrpc调用新建category方法时返回500

  • 操作系统版本:centos 7
  • PHP 版本:php7.2
  • Typecho 版本:1.2.0
@DengJackNo1
Copy link

when i use python3 xmlrpc api to create a new category, i found a error.finally i get a 500 Internal Server Error.
for example:

# !/usr/bin/python3

from xmlrpc.client import ServerProxy
url = 'http://192.168.0.125:7778/typecho/action/xmlrpc'
s = ServerProxy(url)
category = {
    'name': 'test',
    'slug':'test',
    'description':'description',
}
ret = s.wp.newCategory(1, userName, password,category)
print(ret)

the result is "xmlrpc.client.ProtocolError: <ProtocolError for 192.168.0.125:7778/typecho/action/xmlrpc: 500 Internal Server Error>"

i do not know how to do

@joyqi
Copy link
Member

joyqi commented May 21, 2022

能否找到服务端的PHP错误日志

@DengJackNo1
Copy link

PHP 7.2.10 (cli) (built: Sep 17 2018 09:40:17) ( NTS )
没有发现php error.log

@Sundae97
Copy link
Author

#1340 这个issue也是同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants