WebFaction
Community site: login faq

I want to use the Webfaction API for creating domains, apps, websites and databases. Everything works fine, except for the creation of websites. This are my commands and the output:

server.create_website(session_id, 'mydomain.com', '95.211.171.86', False, ['mydomain.com', 'www.'mydomain.com'], ('myapp', '/'))

mydomain.com is added in my websites, myapp is added in my applications. The output is:

xmlrpclib.Fault: <Fault 1: "<class 'webfaction_api.exceptions.DataError'>:[u'Value must be alphanumeric only']">

Any ideas?

asked 27 Oct '12, 16:52

Peter
1326
accept rate: 0%


You can't name an application 'mydomain.com', the '.' is the alphanumeric complaint. Pick something else and it should work. Here is the documentation for that function for reference.

permanent link

answered 27 Oct '12, 17:22

johns
5.4k412
accept rate: 23%

Thanks johns, that was the problem. Quite simple but that's what you get when you're coding for hours, you can miss the simple things.

(27 Oct '12, 17:48) Peter

You're welcome, I completely understand.

(27 Oct '12, 17:52) johns
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×76
×4

question asked: 27 Oct '12, 16:52

question was seen: 2,170 times

last updated: 27 Oct '12, 17:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM