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 AD608200B43 for ; Tue, 19 Jul 2016 16:01:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ABDA5160A8B; Tue, 19 Jul 2016 14:01:13 +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 0104F160A76 for ; Tue, 19 Jul 2016 16:01:12 +0200 (CEST) Received: (qmail 56750 invoked by uid 500); 19 Jul 2016 14:01:12 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 56740 invoked by uid 99); 19 Jul 2016 14:01:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2016 14:01:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7FDBED026F for ; Tue, 19 Jul 2016 14:01:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.588 X-Spam-Level: X-Spam-Status: No, score=-3.588 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.287, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pnT2Af9zwIgL for ; Tue, 19 Jul 2016 14:01:08 +0000 (UTC) Received: from smtpout1.correo.udc.es (smtpout1.correo.udc.es [193.144.48.101]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7FAF85FB50 for ; Tue, 19 Jul 2016 14:01:07 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtpout1.correo.udc.es (Postfix) with ESMTP id 2281B20794 for ; Tue, 19 Jul 2016 16:01:00 +0200 (CEST) Received: from smtpout1.correo.udc.es ([127.0.0.1]) by localhost (smtpout1.correo.udc.es [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PFYE4mz5bqg8 for ; Tue, 19 Jul 2016 16:00:55 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtpout1.correo.udc.es (Postfix) with ESMTP id 526AC207A5 for ; Tue, 19 Jul 2016 16:00:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at smtpout1.correo.udc.es Received: from smtpout1.correo.udc.es ([127.0.0.1]) by localhost (smtpout1.correo.udc.es [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DwRiRmkXoSEu for ; Tue, 19 Jul 2016 16:00:55 +0200 (CEST) Received: from ms2.correo.udc.es (ms2.correo.udc.es [10.8.13.152]) by smtpout1.correo.udc.es (Postfix) with ESMTP id 3798020794 for ; Tue, 19 Jul 2016 16:00:55 +0200 (CEST) Date: Tue, 19 Jul 2016 16:00:54 +0200 (CEST) From: Iago Alonso Alonso To: dev@stratos.apache.org Message-ID: <1690410403.11874974.1468936854959.JavaMail.zimbra@udc.es> In-Reply-To: <1160010661.11874708.1468936767955.JavaMail.zimbra@udc.es> Subject: Apache Stratos not works as expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [193.144.48.104] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - FF47 (Win)/8.0.7_GA_6021) Thread-Topic: Apache Stratos not works as expected Thread-Index: UQwxc1WQ6mmYUOn79oNdfVUUF7yUuw== archived-at: Tue, 19 Jul 2016 14:01:13 -0000 I'm trying to send orders to Apache Stratos via API REST but I'm unnable to make it works. According to the Deploy Doc (https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Deploying+an+Application+via+REST+API) and the Undeploy Doc (https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Undeploying+an+Application+via+REST+API) you can do the process via API REST. When I try to send the orders I'm getting an 500 ERROR as response. If I go to .....:9443/console/ I can do the both procces with the same credentials that I send on the code. For example, to deploy process: policy = form.cleaned_data['Application Policy ID:'] applicationID = form.cleaned_data['Application ID:'] headers = {'Content-Type': 'application/json'} deployApp = apacheStratosAPI + applications + '/' + applicationID + '/' + deploy + '/' + policy req = requests.get(deployApp, headers=headers, auth=HTTPBasicAuth(request.session['stratosUser'], request.session['stratosPass']), verify=False) Where apacheStratosAPI, applications, deploy are constants to use in other calls. So, why I can do it via web console and nor with the API REST calls? Regards.