Giter Site home page Giter Site logo

arubacloud-createserver's People

Contributors

valian avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

arubacloud-createserver's Issues

must be of type str or bytes, not <type 'int'>

Hi,
thanks for this great product, i have been using it but since recenlty it has stopped working. I am getting

Logging to ArubaCloud DC4 Creating SmartVm test1... DEBUG: request data {u'ApplicationId': u'SetEnqueueServerCreation', u'Password': u'******!i', u'RequestId': u'SetEnqueueServerCreation', u'Server': {u'AdministratorPassword': u'*******', u'Name': u'test1', u'Note': u'Create by pyArubaCloud', u'OSTemplateId': 618, u'SmartVMWarePackageID': 2}, u'Username': u'FCZ-xxxx'} Traceback (most recent call last): File "/srv/entrypoint.py", line 74, in <module> cli() File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/srv/entrypoint.py", line 57, in create_server if not c.commit(url=ci.wcf_baseurl, debug=debug): File "/usr/local/lib/python2.7/site-packages/ArubaCloud/objects/__init__.py", line 22, in commit response = Http.post(url=url, data=self.get_json(), headers=headers) File "/usr/local/lib/python2.7/site-packages/ArubaCloud/helper/__init__.py", line 31, in post response = requests.post(url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 112, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 494, in request prep = self.prepare_request(req) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 437, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 306, in prepare self.prepare_headers(headers) File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 440, in prepare_headers check_header_validity(header) File "/usr/local/lib/python2.7/site-packages/requests/utils.py", line 872, in check_header_validity "bytes, not %s" % (name, value, type(value))) requests.exceptions.InvalidHeader: Value for header {Content-Length: 290} must be of type str or bytes, not <type 'int'>

I have tried the Docker version and also on seperate Ubuntu14 with Python 2.7 version on it. both commands throw similar exception with type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.