AnsweredAssumed Answered

Java API NetStorageException: Communication Error ?

Question asked by Ismail Kerbib on Feb 27, 2018

Hi,

 

I am trying to connect and list the disk usage of a path on netstorage using the following piece of code in java. But i am getting the following error com.akamai.netstorage.NetStorageException: com.akamai.netstorage.NetStorageException: Communication Error

 

String nsPath = "/path/asset/video/1510100593";

    DefaultCredential akamaiCredentials =

        new DefaultCredential("***.upload.akamai.com", "xxUserxx", "xxPasswordxx");

    NetStorage ns = new NetStorage(akamaiCredentials);

    try {

      System.err.println(ns.du(nsPath));

    } catch (NetStorageException e) {

      // TODO Auto-generated catch block

      e.printStackTrace();

    }

 

Any idea why this would fail ???

Outcomes