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

Badge Image not showing up #24

Open
Arnavop opened this issue Jun 27, 2024 · 5 comments
Open

Badge Image not showing up #24

Arnavop opened this issue Jun 27, 2024 · 5 comments

Comments

@Arnavop
Copy link

Arnavop commented Jun 27, 2024

Endpoint -> /:username/badges

{ "badgesCount": 1, "badges": [ { "id": "4112631", "displayName": "Guardian", "icon": "/static/images/badges/guardian.png", "creationDate": "2024-06-19" } ],

but when click on icon it shows

Cannot GET /static/images/badges/guardian.png

@alfaarghya
Copy link
Owner

@Arnavop try to add leetcode.com before the path

@alfaarghya
Copy link
Owner

@Arnavop
Copy link
Author

Arnavop commented Jun 27, 2024

Oh thanks

@alfaarghya
Copy link
Owner

Yeah, happy to help 😀

It seems odd because when I created it 5 months ago all icon's URLs came directly from leetcode. So I just checked this, and look what I found, some of the badges have the total link & some don't have --

{
  "badgesCount": 9,
  "badges": [
    {
      "id": "3691473",
      "displayName": "100 Days Badge 2024",
      "icon": "https://assets.leetcode.com/static_assets/marketing/2024-100-lg.png",
      "creationDate": "2024-04-11"
    },
    {
      "id": "3364677",
      "displayName": "50 Days Badge 2024",
      "icon": "https://assets.leetcode.com/static_assets/marketing/2024-50-lg.png",
      "creationDate": "2024-02-19"
    },
    {
      "id": "2847927",
      "displayName": "50 Days Badge 2023",
      "icon": "https://assets.leetcode.com/static_assets/marketing/lg50.png",
      "creationDate": "2023-12-16"
    },
    {
      "id": "2847926",
      "displayName": "100 Days Badge 2023",
      "icon": "https://assets.leetcode.com/static_assets/marketing/lg100.png",
      "creationDate": "2023-12-16"
    },
    {
      "id": "3628712",
      "displayName": "Mar LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2024-3.png",
      "creationDate": "2024-03-31"
    },
    {
      "id": "3452332",
      "displayName": "Feb LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2024-2.png",
      "creationDate": "2024-02-29"
    },
    {
      "id": "3285586",
      "displayName": "Jan LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2024-1.png",
      "creationDate": "2024-01-31"
    },
    {
      "id": "2686762",
      "displayName": "Nov LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2023-11.png",
      "creationDate": "2023-11-30"
    },
    {
      "id": "2598661",
      "displayName": "Oct LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2023-10.png",
      "creationDate": "2023-10-31"
    }
  ],
  "upcomingBadges": [
    {
      "name": "Jun LeetCoding Challenge",
      "icon": "/static/images/badges/dcc-2024-6.png"
    }
  ],
  "activeBadge": {
    "id": "3691473",
    "displayName": "100 Days Badge 2024",
    "icon": "https://assets.leetcode.com/static_assets/marketing/2024-100-lg.png",
    "creationDate": "2024-04-11"
  }
}

@Arnavop
Copy link
Author

Arnavop commented Jun 28, 2024

umm thats odd
ig i will check manually then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants