Coder Social home page Coder Social logo

python-flattr's Introduction

๐Ÿ’ฌ Ask me about ...

  • โ˜๏ธ
  • Kubernetes
  • OpenStack

โ™ฅ๏ธ

  • ๐Ÿšด
  • ๐Ÿƒ

python-flattr's People

Contributors

chrigl avatar

Watchers

 avatar  avatar  avatar

python-flattr's Issues

After authenticated.get_activities() other calls do not work any more

Before calling authenticated.get_activities, everything (link authenticated.get_things) works fine. After calling get_activities, some calls return confusing results. get_things just one malformed thing.
get_subcriptions return with an error:

In [52]: api.authenticated.get_subscriptions()
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
/home/chris/Projects/python-flattr3.5.env/lib/python3.5/site-packages/flattrclient/exc.py in raise_exception(status_code, error, description)
     46     try:
---> 47         raise code_exception_mapping[status_code][error](description)
     48     except KeyError:

KeyError: 'not_found'

During handling of the above exception, another exception occurred:

FlattrApiError                            Traceback (most recent call last)
<ipython-input-52-39de3e3d2f87> in <module>()
----> 1 api.authenticated.get_subscriptions()

/home/chris/Projects/python-flattr3.5.env/lib/python3.5/site-packages/flattrclient/__init__.py in __result(self, *args, **kwargs)
     32         def __result(self, *args, **kwargs):
     33             resp = fn(self, *args, **kwargs)
---> 34             res = _handle_response(resp)
     35             if res is None:
     36                 return None

/home/chris/Projects/python-flattr3.5.env/lib/python3.5/site-packages/flattrclient/__init__.py in _handle_response(resp, accepted_codes, do_json)
     21             error = 'not_found'
     22             description = resp.text
---> 23         raise_exception(resp.status_code, error, description)
     24     if resp.status_code != 204:
     25         return resp.json()

/home/chris/Projects/python-flattr3.5.env/lib/python3.5/site-packages/flattrclient/exc.py in raise_exception(status_code, error, description)
     47         raise code_exception_mapping[status_code][error](description)
     48     except KeyError:
---> 49         raise FlattrApiError(description)

FlattrApiError: 406 Feed response not supported for this resource

However. Using additional_parameters causing this problem, since data in the real session.header will be overridden.

flattrclient/init.py:L95

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.