sindresorhus/refined-github

I forgot to set the token #3381

tomkerkhove posted onGitHub

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a full URL where the feature should appear. -->

Age of Promitor is miscalculated since it says it's 19 years old.

image


Related to https://github.com/sindresorhus/refined-github/issues/3185. You have a broken Unix timestamp in the repo.

posted by sindresorhus over 4 years ago

Also, try cleaning the extension cache and refresh the page and see if it's correct. I just got 2 years old.

posted by kidonng over 4 years ago

It's gone but will pop back up I presume, thanks for the quick help

posted by tomkerkhove over 4 years ago

We use the date found on this page: https://github.com/tomkerkhove/promitor/commits/master?after=85bdaae5e96db7943e4582bc1f3c3daa8815989f+782, which is the string 2018-02-04T22:47:41Z

We convert this with new Date('2018-02-04T22:47:41Z'), is it possible that in some cases this might fail?

Do you use Windows?

posted by fregante over 4 years ago

If it happens again, please take a screenshot with the tooltip, like this, to understand why it's being misparsed.

<img width="316" alt="Screen Shot 2020-07-22 at 12 09 43" src="https://user-images.githubusercontent.com/1402241/88169696-4824b980-cc14-11ea-84f8-8625ee86d175.png">

posted by fregante over 4 years ago

I'm using Windows indeed!

posted by tomkerkhove over 4 years ago

I'll keep an eye on it but it's hidden for now.

posted by tomkerkhove over 4 years ago

but it's hidden for now.

What do you mean by "hidden"? It doesn't display? Could you please check if there is something like Cannot read property 'split' of undefined in your console? I encountered this issue several times and after cleaning the cache everything backs to normal. Not sure if it is related to this wrong age issue though.

posted by kidonng over 4 years ago

Could you please check if there is something like Cannot read property 'split' of undefined in your console?

That error is https://github.com/sindresorhus/element-ready/issues/29. On first load sometimes the element is not ready on time

posted by yakov116 over 4 years ago

If it happens again, please take a screenshot with the tooltip, like this, to understand why it's being misparsed.

<img alt="Screen Shot 2020-07-22 at 12 09 43" width="316" src="https://user-images.githubusercontent.com/1402241/88169696-4824b980-cc14-11ea-84f8-8625ee86d175.png">

@fregante from another Windows machine without clearing the cache: image

After clearing it doesn't show up but console has this entry:

ℹī¸ Refined GitHub → repo-age → Personal token required for this feature

posted by tomkerkhove over 4 years ago

Hmm, if you have it again can you see if there is an error. Also if you can get the commit its linked to.

posted by yakov116 over 4 years ago

It was a token issue then.

posted by fregante over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests