Skip to content

[Icons] ux:icons:lock showing 200 when really a 404 #2272

@tacman

Description

@tacman

This works as expected.

bin/console ux:icons:import tabler:bugxxx

 // Importing tabler:bugxxx...                                                                                          

                                                                                                                        
 [ERROR] The icon "tabler:bugxxx" does not exist on iconify.design.                    

But if I have some twig

{% set iconMap = {
    bug : ux_icon("tabler:bugxxx"),
    url : ux_icon("tabler:world-www"),
    api : ux_icon("tabler:api"),
    wiki : ux_icon("simple-icons:wikidata"),
    github: ux_icon("tabler:brand-github"),
    ds1: ux_icon("tabler:database"),
    citation: ux_icon("formkit:url"),
    rights: ux_icon("tabler:copyright")
}
%}

And then run

bin/console ux:icons:lock -vv 

 // Scanning project for icons...                                                                                       

11:48:07 INFO      [http_client] Request: "GET https://api.iconify.design/tabler/bugxxx.svg"
11:48:07 INFO      [http_client] Response: "200 https://api.iconify.design/tabler/bugxxx.svg"
                                                                                                                        
 [OK] Imported 0 icons.                                                                                              `

It shouldn't be reporting a 200, and I'm hoping instead that it reports an error. I have a situation where it's running locally but not on production, but I can't figure out which icon I forgot to import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions