"Install this theme component" doesn't display any information after a 502 error

It also throws an error when we put an uppercase character in a URL:

I’m not 100% sure of URLs specs, but maybe the code should lowercase the string before triggering the script?