apex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Yan <da...@datatorrent.com>
Subject Re: Accessing dtGateway's REST API
Date Tue, 06 Sep 2016 04:36:25 GMT
Hi Kimmy,

You need to use a cookie jar in curl to do this. There is an example here:

http://docs.datatorrent.com/dtgateway_security/#administering-using-command-line

David

On Sat, Sep 3, 2016 at 5:59 PM, Cummings, Kimmy <
Kimmy.Cummings@capitalone.com> wrote:

> Hey Everyone,
>
>
>
> I’m writing an application using MEAN Stack to display and write
> performance metrics for my APEX app; I’ve run into an issue when trying to
> use the following curl command (example from docs.datatorrent)
>
>
>
> curl http://localhost:9090/ws/v2/applications/application_
> 1442448722264_14891/physicalPlan/operators/40
>
>
>
> curl returns credential errors:
>
> <TITLE>Alert: Access Denied</TITLE>
>
> <TD class="exceptionrtcol">Your credentials could not be authenticated:
> "Credentials are missing.". You will not be permitted access until your
> credentials can be verified.</TD>
>
>
>
>
>
>
>
> When I remove curl and go to the URL in chrome, operator metrics are
> returned as expected.
>
>
>
> I’ve tried passing –u *username* in but receive the same error. Any Ideas?
>
>
>
>
>
> Thanks,
>
> Kimmy
>
> ------------------------------
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>

Mime
View raw message