Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3 Core] Unable to load streams cog with a set mixer alerts #1932

Closed
ASSASSIN0831 opened this issue Jul 12, 2018 · 2 comments · Fixed by #1994
Closed

[V3 Core] Unable to load streams cog with a set mixer alerts #1932

ASSASSIN0831 opened this issue Jul 12, 2018 · 2 comments · Fixed by #1994
Assignees
Labels
Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Milestone

Comments

@ASSASSIN0831
Copy link
Contributor

ASSASSIN0831 commented Jul 12, 2018

Command bugs

Command name

[p]load streams

What cog is this command from?

Core and Streams

What were you expecting to happen?

For the streams cog to load.

What actually happened?

I added a mixer stream and it worked but I updated to version 17 and noticed the streams cog wasn't loaded. so I did the load command and got this error. I deleted the json file and then it loaded jsut fine. Once I added a mixer stream the tried to reload the cog by first doing the unload command then doing the load command. I got the error again.

Exception during loading of cog
Traceback (most recent call last):
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/core/core_commands.py", line 87, in _load
    await bot.load_extension(spec)
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/core/bot.py", line 222, in load_extension
    await lib.setup(self)
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/cogs/streams/__init__.py", line 6, in setup
    await cog.initialize()
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/cogs/streams/streams.py", line 71, in initialize
    self.streams = await self.load_streams()
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/cogs/streams/streams.py", line 611, in load_streams
    token = await self.db.tokens.get_raw(_class.__name__)
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/core/config.py", line 342, in get_raw
    return await self.driver.get(*self.identifiers, *path)
  File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/core/drivers/red_json.py", line 100, in get
    partial = partial[i]
KeyError: 'MixerStream'

How can we reproduce this issue?

  1. Add a mixer stream alert
  2. Unload the stream cog
  3. Load the streams cog
@Kowlin Kowlin added the V3 label Jul 14, 2018
@Tobotimus Tobotimus added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Aug 9, 2018
@Tobotimus Tobotimus added this to the Beta 19 milestone Aug 9, 2018
@Tobotimus
Copy link
Member

Hi, thanks for reporting this issue! I've set the milestone for the next beta (19), and I'll assign myself to try and get it done by then :)

@Tobotimus Tobotimus self-assigned this Aug 9, 2018
Tobotimus added a commit to Tobotimus/Red-DiscordBot that referenced this issue Aug 9, 2018
Some streaming services don't require a token/clientID.

Resolves Cog-Creators#1932
@Tobotimus Tobotimus added the Status: In Progress There's a PR open to deal with this, or an org member is working on this internally label Aug 9, 2018
Tobotimus added a commit that referenced this issue Aug 10, 2018
Some streaming services don't require a token/clientID.

Resolves #1932
@Tobotimus
Copy link
Member

Resolved by #1994.

@Tobotimus Tobotimus removed the Status: In Progress There's a PR open to deal with this, or an org member is working on this internally label Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants