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

KeyError: 'document_url' #341

Open
sentry-io bot opened this issue Mar 16, 2023 · 2 comments
Open

KeyError: 'document_url' #341

sentry-io bot opened this issue Mar 16, 2023 · 2 comments
Labels

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 16, 2023

Sentry Issue: PIC-P1

KeyError: 'document_url'
(3 additional frame(s) were not displayed)
...
  File "flask/_compat.py", line 33, in reraise
    raise value
  File "flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "flask_cors/decorator.py", line 127, in wrapped_function
    resp = make_response(f(*args, **kwargs))
  File "app.py", line 81, in document
    document_url, = query['document_url']
@hancush hancush changed the title KeyError: 'document_url' Google AMP breaks the PDF viewer Mar 16, 2023
@hancush
Copy link
Member

hancush commented Mar 16, 2023

Looks like amp; is winding up in our querystring sometimes. We should figure out why.

Screen Shot 2023-03-16 at 8 32 29 AM

@hancush hancush changed the title Google AMP breaks the PDF viewer KeyError: 'document_url' Mar 16, 2023
@hancush
Copy link
Member

hancush commented Mar 16, 2023

Sorry for two incorrect diagnoses, lol

@derekeder derekeder added the bug label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants