Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

AutoRefresh token doesn't happen. #36

Description

@subramaniank

Any operation must be retried with a refreshed token in case the token is expired.

https://help.podio.com/hc/communities/public/questions/200517138-Refresh-Token

  File "/home/ubuntu/accounts-server/src/accounts_server/services/consumer_data_service/podio_customer_app.py", line 26, in get_consumer_by_mobile
    results = self.c.Item.filter(app_id=self.app_id, attributes=attributes)
  File "/home/ubuntu/.virtualenvs/accounts-server/src/pypodio2-master/pypodio2/areas.py", line 102, in filter
    type="application/json", **kwargs)
  File "/home/ubuntu/.virtualenvs/accounts-server/src/pypodio2-master/pypodio2/transport.py", line 146, in __call__
    return handler(response, data)
  File "/home/ubuntu/.virtualenvs/accounts-server/src/pypodio2-master/pypodio2/transport.py", line 216, in _handle_response
    raise TransportException(response, data)
TransportException: TransportException({'status': '401', 'content-length': '234', 'server': 'nginx', 'connection': 'keep-alive', 'x-podio-request-id': 'd3RKoSs6', 'date': 'Mon, 15 Jun 2015 05:15:32 GMT', 'content-type': 'application/json; charset=utf-8', 'www-authenticate': 'Bearer realm="podio", error="expired_token"', 'authorization': 'Bearer realm="podio", error="expired_token"'}): {"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/item\/app\/xxxxxxx\/filter\/","query_string":"","method":"POST"},"error_description":"expired_token","error":"unauthorized"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions