Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kapua-dev] Client Command
  • From: "Mezzasalma, Claudio" <Claudio.Mezzasalma@xxxxxxxxxxxx>
  • Date: Thu, 12 Mar 2020 08:28:29 +0000
  • Accept-language: it-IT, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eurotech.com; dmarc=pass action=none header.from=eurotech.com; dkim=pass header.d=eurotech.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PCRj0Mkgn+7HGMiyjRrbmkXdynp7opGqq05+cKkfDsY=; b=mZzTsnAtiO3yu5myC7QpKToTAFfwkO+Mc7U8/P2z+oI7cHyyCJR76GPaahNfrnOpR2hkfgfMSs1JCG4VAlf9mdeL2VBISp816qWWFlWH8UEAlsHL9S1/qGtcAjc6AvlpP7CGeC4cnKC/qzaaC4RJhVehyUIrfZuchRKsRqsgiLZwISmPMQnlMPHYUfKJM67VZrLPYCwa/1BBUc0CZuxKOVzVsiEmfHYRGjYHa868xx/MNclaQg/HUr1za+bUlmjUsYOllFC6aURodMs2+kJS8hBJnSpoIAFwbfDQEprzPIxznAE8thhgpqPI+u6TK+G6+f8D94PLTWHpOowg6nJpyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hAFfJfPUgUHsc2PDA3nKwkW0gO4LvbaFTIBR0IoGHMVsnNvLgd7RIYhjRNYZEaSxaQMLLhPtVEfO4Q089Pq/hq9dQYVEScgtXCzsB2xR4n3NfiVd9gpkMpc0ZtzqpCQSB8BVnJaW5HDcTZ8HUJ76kFvrglog3t+7i3T9r8g1fdQg6/+G+4ISgIdc2hCuuAaOSsH6qD6cYwFYezrC+pvjhz+xNY4ELoIAblhXCvQjB5EhQiVM5F+VaZnU2JQoyIMF5tlC/2liAwmq7M2WOUJYT9zZdFfA8FXlK53J8Doui57Yw9GXEwTG76IZvH5Ql03tJFnxYzWBSTW+ZT4UcjxP1A==
  • Delivered-to: kapua-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/kapua-dev>
  • List-help: <mailto:kapua-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/kapua-dev>, <mailto:kapua-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/kapua-dev>, <mailto:kapua-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHV975SoKmbERt29ku2YYUtneRM5ahEWD2AgABZcgA=
  • Thread-topic: [kapua-dev] Client Command

Being an open source project, Kapua is an ever evolving software that can happen to have bugs from time to time. Specifically, the current OpenAPI specification for the REST APIs contains a few issues on the data formats, that will be fixed in Kapua 1.2.0. That’s why SwaggerUI asks you for a string array, but as I already said, you have to pass the password as a string.

 

To get data from REST APIs you want to use the Data Message endpoints.

 

-- 

Claudio Mezzasalma | Eurotech

 

Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di "ramraj.shankar@xxxxxxxx" <ramraj.shankar@xxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: giovedì 12 marzo 2020 05:08
A: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Oggetto: Re: [kapua-dev] Client Command

 

I passed the password the way it was given. 

How exactly should I make a client to extract data via API?

 

 

 

Regards,

Ram

 

On Mar 11, 2020 9:31 PM, "Mezzasalma, Claudio" <Claudio.Mezzasalma@xxxxxxxxxxxx> wrote:

You should pass the password as a string, not as a string array. Also, for further reference, you can usually find more details about errors in the Docker containers logs

 

-- 

Claudio Mezzasalma | Eurotech

 

Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di "Shankar, Ramraj" <Ramraj.Shankar@xxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: mercoledì 11 marzo 2020 14:56
A: "kapua-dev@xxxxxxxxxxx" <kapua-dev@xxxxxxxxxxx>
Oggetto: [kapua-dev] Client Command

 

Hello,

 

I am getting the error shown in the attachment when I run the client code command.

 

Also I am getting error 500 when I run : curl -X POST 'http://localhost:8081/v1/authentication/user' --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{

  "password": [
    "kapua-password"
  ],
  "username": "kapua-sys"
}'
Could you please help me?

 


Back to the top