Code Monkey home page Code Monkey logo

Comments (1)

open4storage avatar open4storage commented on June 23, 2024
DEBUG:ecsclient.common.token_request:Token validated successfully
DEBUG:requests.packages.urllib3.connectionpool:"GET /logout HTTP/1.1" 200 None
DEBUG:ecsclient.baseclient:Removing cached token 'temp.txt'
DEBUG:root:Saved data to disk...
DEBUG:requests.packages.urllib3.connectionpool:"GET /logout HTTP/1.1" 401 None
ERROR:ecsclient.baseclient:Status code NOT OK
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "./account_endpoint.py", line 51, in run
    user_dict = self.ecsc.get_user_consumption()
  File "/home/julio/projects/ecs-account-usage/src/account_usage.py", line 76, in get_user_consumption
    client.authentication.logout()
  File "/home/julio/.local/lib/python3.5/site-packages/ecsclient/authentication.py", line 35, in logout
    logout_resp = self.conn.get('logout')
  File "/home/julio/.local/lib/python3.5/site-packages/ecsclient/baseclient.py", line 108, in get
    return self._request(url, params=params)
  File "/home/julio/.local/lib/python3.5/site-packages/ecsclient/baseclient.py", line 160, in _request
    raise ECSClientException.from_response(req)
ecsclient.common.exceptions.ECSClientException: Token not found or invalid token provided - Invalid credentials or authentication token provided to access to this resource: https://portal.ecstestdrive.com/logout 401 Unauthorized  [first 60 chars of response] {"code":4000,"retryable":false,"description":"Invalid creden

It also doesnt seem like logout remove the old token file. Causing a failure on the next login as the code finds it and try to use it.

from python-ecsclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.