Skip to content

sentry and asgi 'lifespan' scope type: documentation, bug or configuration issue? #820

@tony

Description

@tony

Hi there, I'm not sure if issues relating to lifespan and asgi on sentry are resolved yet.

I got this error today after following the instructions for SentryAsgiMiddleware:

ValueError generic ASGI request error
No application configured for scope type 'lifespan'

sentry docs on asgi middleware: https://docs.sentry.io/platforms/python/guides/asgi/
asgi docs on lifespan: https://asgi.readthedocs.io/en/latest/specs/lifespan.html

Here are some related issues:

I'm using uvicorn with sentry-sdk 0.16.5 (example event if you're sentry staff: b47f9e1ecd9547709404d84d51b9a0b9)

Activity

untitaker

untitaker commented on Sep 14, 2020

@untitaker
Member

#505 has been fixed as per comments. This seems like @tomchristie may have more info on it (I don't know what the bug is), but if all you need for now is to get rid of the error in Sentry to save money, use Sentry features: django/channels#1216 (comment)

github-actions

github-actions commented on Dec 23, 2021

@github-actions
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

tony

tony commented on Dec 23, 2021

@tony
Author

This has happened so long ago, I am going to close now.

If anyone bumps into this again, feel free to refer to this issue and create a new one.

antonpirker

antonpirker commented on Feb 25, 2022

@antonpirker
Contributor

As the original poster already closed this. I will again close this and post his same message:

If anyone bumps into this again, feel free to refer to this issue and create a new one.

locked as resolved and limited conversation to collaborators on Mar 7, 2022
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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tony@antonpirker@untitaker@sl0thentr0py@stephanie-anderson

        Issue actions

          sentry and asgi 'lifespan' scope type: documentation, bug or configuration issue? · Issue #820 · getsentry/sentry-python