Openlibrary: https://openlibrary.org/type/author raises a TypeError

Created on 22 Sep 2020  Â·  11Comments  Â·  Source: internetarchive/openlibrary

https://openlibrary.org/type/author raises /opt/openlibrary/deploys/openlibrary/4ed1ca3/openlibrary/templates/lib/history.html: error in processing template: TypeError: %d format: a number is required, not instance (falling back to default template)

Evidence / Screenshot (if possible)

Relevant url?


https://openlibrary.org/type/author
https://openlibrary.org/type/author?debug=True # For more details

Steps to Reproduce

  1. https://openlibrary.org/type/author
  2. Look at the yellow box at the top of the page

  • Actual:
  • Expected:

Details

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

Proposal & Constraints

Related files

Stakeholders

@cdrini Investigation 3 Bug

All 11 comments

Hmm, I'm not observing an error here.

image

Screenshot 2020-09-22 at 23 59 21

Screenshot 2020-09-22 at 23 59 47

can I work on this issue?

@Abhirup-99 Can you replicate this issue? In general, we follow the “many eyes make all bugs trivial” approach so if you see an issue that you want to try to fix then do not wait for permission — just go for it. If two people submit a pull request to fix the same issue, it is usually a learning opportunity.

Hmm, this looks like it might be an i18n issue. What language is your browser? Can you expand the first "Local vars" in the debug view?

Screenshot 2020-09-23 at 18 52 41

kw {'count': } looks suspect to me.

How odd! It's showing up for me now :/
image

But in incognito it's fine:

image

3883 issue and this issue are related, also this is occurring for 'type/collection', 'type/scan_location','type/place' etc.

I think this was resolved by #3922 and can be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdrini picture cdrini  Â·  5Comments

jdlrobson picture jdlrobson  Â·  5Comments

jdlrobson picture jdlrobson  Â·  5Comments

cdrini picture cdrini  Â·  4Comments

BrittanyBunk picture BrittanyBunk  Â·  4Comments