openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

'maximum recursion depth exceeded' on /people/304vn

Open SouthGoingZax opened this issue 6 years ago • 4 comments

Fixed in internetarchive/infogami#189

https://openlibrary.org/people/304vn returns:

/opt/openlibrary/deploys/openlibrary/68474f6/openlibrary/templates/type/user/view.html: error in processing template: RuntimeError: maximum recursion depth exceeded (falling back to default template)

https://openlibrary.org/people/304vn?&debug=true returns:

<type 'exceptions.RuntimeError'> at /people/304vn maximum recursion depth exceeded Python /opt/openlibrary/deploys/openlibrary/68474f6/infogami/utils/markdown/markdown.py in _linesUntil, line 1426 Web GET https://openlibrary.org/people/304vn

Evidence / Screenshot (if possible)

max recursion depth exceeded 1 [... a lot more of that last message ... ] max recursion depth exceeded 2 max recursion depth exceeded 3

I haven't seen this with any other page, and I don't see any related past or present issues when searching for that error.

Relevant url?

https://openlibrary.org/people/304vn

Steps to Reproduce

  1. Go to one of the two URLs above and wait
  • Actual: (see above)
  • Expected: Page renders, even if in some sort of degraded mode once a timeout is reached

Details

  • Logged in (Y/N)? N
  • Browser type/version? Chrome
  • Operating system? Linux
  • Environment (prod/dev/local)? prod

Proposal & Constraints

Related files

Stakeholders

@mekarpeles

SouthGoingZax avatar Oct 16 '20 18:10 SouthGoingZax

This specific user profile was filled with spam (we blocked the account + reverted) https://openlibrary.org/people/304vn.json?v=2

We should keep this open, though and figure out why the recursion problem was happening may be related to markdown

mekarpeles avatar Oct 19 '20 20:10 mekarpeles

I want to take up this issue. As I am new to this contribution can to you guide me through where to look up for this issue. I am unable to locate the file markdown.py. Thanks in advance

anirbansaha782 avatar Oct 22 '20 05:10 anirbansaha782

Take a look at the "Prerequisites & Troubleshooting" section of https://github.com/internetarchive/openlibrary/blob/master/docker/README.md. It looks like markdown.py is in the Git submodule called infogami, which I guess you might not get if you git clone the repository via https.

SouthGoingZax avatar Oct 22 '20 20:10 SouthGoingZax

This page has been deleted

cclauss avatar Jun 26 '22 22:06 cclauss