cern-sis / issues-inspire

0 stars 0 forks source link

TypeError on author pages #400

Closed michamos closed 7 months ago

michamos commented 9 months ago

Some authors complain that they can't view (some?) author profiles, it seems to be due to https://sentry.siscern.org/inspire/ui/issues/314056/?query=is%3Aunresolved%20properties.

Ticket to reply to once it's solved: https://rt.inspirehep.net/Ticket/Display.html?id=1383456

drjova commented 8 months ago

@michamos I cannot reproduce it; this only fails due to the wrong update date, which is a server date. I see other events with this error, but it makes no sense. Do you have other authors with this to investigate further?

michamos commented 8 months ago

@drjova I can't reproduce it either, but from the stacktrace it looks like moment.utc(updateDate).tz(LOCAL_TIMEZONE) is undefined sometimes. LOCAL_TIMEZONE is apparently defined in https://github.com/inspirehep/inspirehep/blob/515fcb9a00337172c257c45d30e3b897aeba56cf/ui/src/common/constants.ts#L75, might that be invalid in some cases depending on the user environment?