Hi,
I have tested user creation on local instance running galaxy-central and it
is running fine for me. Please se attached request and response
(printscreen from postman chrome extension):
https://www.dropbox.com/s/g7iiluq1tqc426p/Screenshot%202014-01-14%2014.22.45.png
Martin, Galaxy Team
On Tue, Jan 14, 2014 at 4:32 AM, xlwang xlwang_0...@163.com wrote:
When I use API to create a user, I get an error! And this time I use the
galaxy instance from galaxy-central.
The command is:
#curl -d '{username:test,password:test,email:1...@123.com}'
http://myip:8080/api/users?key=my_key
I get some information:
And the web server give me some error information:
galaxy.web.framework ERROR 2014-01-14 17:18:42,257 Uncaught exception in
exposed API method:
Traceback (most recent call last):
File /galaxy-central/lib/galaxy/web/framework/__init__.py, line 197,
in decorator
rval = func( self, trans, *args, **kwargs)
File /galaxy-central/lib/galaxy/webapps/galaxy/api/users.py, line 97,
in create
username = payload[ 'username' ]
KeyError: 'username'
10.10.10.1 - - [14/Jan/2014:17:18:42 +0800] POST
/api/users?key=e2424e1d238292b5dfe4e3fdcc411dd1 HTTP/1.1 500 - -
curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
I don't know why it happened. Please help me to fix this error. Thank you!
___
Please keep all replies on the list by using reply all
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/
截图2.png___
Please keep all replies on the list by using reply all
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/