You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/18 03:26:26 UTC

[jira] [Commented] (LIBCLOUD-887) setting LIBCLOUD_DEBUG causes unexpected keyword 'stream' TypeError

    [ https://issues.apache.org/jira/browse/LIBCLOUD-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15827373#comment-15827373 ] 

ASF GitHub Bot commented on LIBCLOUD-887:
-----------------------------------------

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 <an...@apache.org>
Date:   2017-01-18T03:24:53Z

    create a test to prove LIBCLOUD-887 is a bug

----


> setting LIBCLOUD_DEBUG causes unexpected keyword 'stream' TypeError
> -------------------------------------------------------------------
>
>                 Key: LIBCLOUD-887
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-887
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.15.1
>         Environment: Ubuntu, python 2.7
>            Reporter: Tom Melendez
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)