Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-887

setting LIBCLOUD_DEBUG causes unexpected keyword 'stream' TypeError

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.15.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Ubuntu, python 2.7

      Description

      If a user sets LIBCLOUD_DEBUG, they will receive an error and no requests will be made. This is happening on trunk.

      In ./libcloud/utils/loggingconnection.py
      LoggingConnection.request does not accept the stream keyword which causes an error:

      TypeError: request() got an unexpected keyword argument 'stream'

      I can manually add the stream keyword to the parameter list and all is good again.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user tonybaloney opened a pull request:

          https://github.com/apache/libcloud/pull/978

          Fix LIBCLOUD-887

          If a user sets LIBCLOUD_DEBUG, they will receive an error and no requests will be made. This is happening on trunk and v2.0.0rc1-tentative

          ```
          In ./libcloud/utils/loggingconnection.py
          LoggingConnection.request does not accept the stream keyword which causes an error:
          TypeError: request() got an unexpected keyword argument 'stream'
          ```

          Reported by @supertom

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/tonybaloney/libcloud fix_debug_pattern

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/libcloud/pull/978.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #978


          commit ed6d012aab1c8bad83f66bf4ed4621b1d5fe0d27
          Author: Anthony Shaw <anthonyshaw@apache.org>
          Date: 2017-01-18T03:24:53Z

          create a test to prove LIBCLOUD-887 is a bug


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user tonybaloney opened a pull request: https://github.com/apache/libcloud/pull/978 Fix LIBCLOUD-887 If a user sets LIBCLOUD_DEBUG, they will receive an error and no requests will be made. This is happening on trunk and v2.0.0rc1-tentative ``` In ./libcloud/utils/loggingconnection.py LoggingConnection.request does not accept the stream keyword which causes an error: TypeError: request() got an unexpected keyword argument 'stream' ``` Reported by @supertom You can merge this pull request into a Git repository by running: $ git pull https://github.com/tonybaloney/libcloud fix_debug_pattern Alternatively you can review and apply these changes as the patch at: https://github.com/apache/libcloud/pull/978.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #978 commit ed6d012aab1c8bad83f66bf4ed4621b1d5fe0d27 Author: Anthony Shaw <anthonyshaw@apache.org> Date: 2017-01-18T03:24:53Z create a test to prove LIBCLOUD-887 is a bug
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit ed6d012aab1c8bad83f66bf4ed4621b1d5fe0d27 in libcloud's branch refs/heads/trunk from Anthony Shaw
          [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=ed6d012 ]

          create a test to prove LIBCLOUD-887 is a bug

          Show
          jira-bot ASF subversion and git services added a comment - Commit ed6d012aab1c8bad83f66bf4ed4621b1d5fe0d27 in libcloud's branch refs/heads/trunk from Anthony Shaw [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=ed6d012 ] create a test to prove LIBCLOUD-887 is a bug
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/libcloud/pull/978

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/libcloud/pull/978

            People

            • Assignee:
              Unassigned
              Reporter:
              supertom Tom Melendez
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development