Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9AC20200B9B for ; Wed, 28 Sep 2016 04:38:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99427160AE6; Wed, 28 Sep 2016 02:38:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DF952160AD2 for ; Wed, 28 Sep 2016 04:38:21 +0200 (CEST) Received: (qmail 31354 invoked by uid 500); 28 Sep 2016 02:38:21 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 31338 invoked by uid 99); 28 Sep 2016 02:38:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 02:38:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DE4192C0057 for ; Wed, 28 Sep 2016 02:38:20 +0000 (UTC) Date: Wed, 28 Sep 2016 02:38:20 +0000 (UTC) From: "SanketDG (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LIBCLOUD-850) Docker Driver missing '/' prior to URI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 28 Sep 2016 02:38:22 -0000 [ https://issues.apache.org/jira/browse/LIBCLOUD-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15528164#comment-15528164 ] SanketDG commented on LIBCLOUD-850: ----------------------------------- Can I get assigned to this? I'd like to do this. > Docker Driver missing '/' prior to URI > -------------------------------------- > > Key: LIBCLOUD-850 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-850 > Project: Libcloud > Issue Type: Bug > Reporter: Mario Loria > Priority: Critical > > Just tried the docker driver and found that it's improperly sending requests to the Docker API: > {{http://127.0.0.1:4243v1.24/containers/json?all=1}} > which yields: > {code} > >>> conn.list_containers() > Traceback (most recent call last): > File "", line 1, in > conn.list_containers() > File "/home/mloria/arrovenv/lib/python3.5/site-packages/libcloud/container/drivers/docker.py > ", line 279, in list_containers > "v%s/containers/json%s" % (self.version, ex)).object > File "/home/mloria/arrovenv/lib/python3.5/site-packages/libcloud/common/base.py", line 862, > in request > response = responseCls(**kwargs) > File "/home/mloria/arrovenv/lib/python3.5/site-packages/libcloud/common/base.py", line 179, > in __init__ > headers=self.headers) > libcloud.common.exceptions.BaseHTTPError: 400 Bad Request > {code} > I've verified this by making the same GET request with Postman, which worked properly (with the missing '/'). Also, Wireshark: http://imgur.com/a/ogEge -- This message was sent by Atlassian JIRA (v6.3.4#6332)