AnsweredAssumed Answered

Diagnostic tools halts with an error

Question asked by Tuukka Paukkunen on May 21, 2015
Latest reply on May 22, 2015 by Tuukka Paukkunen

I am starting to familiarize myself with Akamai APIs with these instructions here:


I got the first API call working back home, but somehow I end up with an error here at work. It must be something related to my environment, but I can't figure out, what it is. I use virtual linux (xubuntu 14.10) at both places.


When I run "python", I get:


"Requesting locations that support the diagnostic-tools API.


Traceback (most recent call last):

  File "", line 95, in <module>

    location_result = getResult('/diagnostic-tools/v1/locations')

  File "", line 44, in getResult

    endpoint_result = session.get(urljoin(baseurl,path))

  File "/usr/lib/python2.7/dist-packages/requests/", line 467, in get

    return self.request('GET', url, **kwargs)

  File "/usr/lib/python2.7/dist-packages/requests/", line 455, in request

    resp = self.send(prep, **send_kwargs)

  File "/usr/lib/python2.7/dist-packages/requests/", line 563, in send

    r = dispatch_hook('response', hooks, r, **kwargs)

  File "/usr/lib/python2.7/dist-packages/requests/", line 41, in dispatch_hook

    _hook_data = hook(hook_data, **kwargs)

  File "/home/tuukka/.local/lib/python2.7/site-packages/edgegrid_python-1.0.6-py2.7.egg/akamai/edgegrid/", line 202, in handle_redirect

    if res.is_redirect:

AttributeError: 'Response' object has no attribute 'is_redirect'"


If someone could give me a nudge to the right direction, I'd appreciate it!


- Tuukka