Giter Site home page Giter Site logo

drummersbrother / rocket-snake Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 153 KB

A python async API client for the https://rocketleaguestats.com/ api.

License: Apache License 2.0

Python 97.53% Makefile 2.47%
api-client asyncio python-asyncio python-library python3

rocket-snake's People

Contributors

alexandercurtin avatar drummersbrother avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

alexandercurtin

rocket-snake's Issues

Unable To Connect To RLS API

Received the following error when trying to request a single player's information:
aiohttp.errors.ClientOSError: [Errno 101] Cannot connect to host api.rocketleaguestats.com:443 ssl:True [Can not connect to api.rocketleaguestats.com:443 [Network is unreachable]]

Full traceback:

Traceback (most recent call last):
  File "lib/discord/ext/commands/core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/ubuntu/Red-DiscordBot/cogs/pickups.py", line 55, in signup
    new_player = await self.client.get_player(urlOrName, rs.constants.STEAM)
  File "/usr/local/lib/python3.5/dist-packages/rocket_snake/client.py", line 114, in get_player
    handle_ratelimiting=self.auto_ratelimit)
  File "/usr/local/lib/python3.5/dist-packages/rocket_snake/basic_requests.py", line 152, in decorated_func
    timeout_seconds=timeout_seconds)
  File "/usr/local/lib/python3.5/dist-packages/rocket_snake/basic_requests.py", line 208, in get_player
    **kwargs))[1]
  File "/usr/local/lib/python3.5/dist-packages/rocket_snake/basic_requests.py", line 88, in basic_request
    async with getattr(session, method)(api_url + endpoint, *args, **kwargs) as response:
  File "lib/aiohttp/client.py", line 565, in __aenter__
    self._resp = yield from self._coro
  File "lib/aiohttp/client.py", line 198, in _request
    conn = yield from self._connector.connect(req)
  File "lib/aiohttp/connector.py", line 314, in connect
    .format(key, exc.strerror)) from exc

Authorization key still leaked due to spelling error

This occurred during initial debugging with the UI, but when dumping out the headers the key for 'Authorisation' is changed to mask the real value, where it should be 'Authorization'. So I get back in my stdout both the values of my api key and also the masking message.

Obviously, the change is trivial. I just wanted the issue to be tracked, but I'll send in a pull request.

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.