Skip to content

!d discord not working correctly #3326

Open
@janine9vn

Description

@janine9vn

Invoking !d discord to lookup the the discord.py documentation is currently not working as intended. It causes the bot start typing and never produces an output.

Image

It seems to be a specific issue with the discord look-up in particular, but more work into what specifically the error could be caused by is needed. The logging present currently isn't enough to trace down the specific issue in production.

It could possibly be an issue with the refresh docs method here:

async def refresh_inventories(self) -> None:
"""Refresh internal documentation inventories."""
self.refresh_event.clear()
await self.symbol_get_event.wait()
log.debug("Refreshing documentation inventory...")
self.inventory_scheduler.cancel_all()
self.base_urls.clear()
self.doc_symbols.clear()
self.renamed_symbols.clear()
await self.item_fetcher.clear()
coros = [
self.update_or_reschedule_inventory(package["package"], package["base_url"], package["inventory_url"])
for package in await self.bot.api_client.get("bot/documentation-links")
]
await asyncio.gather(*coros)
log.debug("Finished inventory refresh.")
self.refresh_event.set()

That method does not check if a refresh is already underway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: informationRelated to information commands: (doc, help, information, reddit, site, tags)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions