lemminx: Error while downloading ... to ... with HTTPS

Hey there,

I’ve tried the VSCode extension today on a testng project in order to check out the DTD support. When I open the file testng.xml, which does point inside the DOCTYPE to a valid DTD endpoint, I do get the error:

Error while downloading 'http://testng.org/testng-1.0.dtd' to /Users/MYUSERNAME/.lsp4xml/cache/http/testng.org/testng-1.0.dtd.

Now in this related issue there is a mention that an upgrade for HTTP -> HTTPS has been setup so I wonder whether this is the root cause.

Alternatively I’d like to know if there are any means to get more logs or info about the specific issue.

Here’s the testng.xml file content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Tests" verbose="5">
  <test name="Test1">
    <packages>
      <package name="uitest.*"/>
    </packages>
  </test>
</suite>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (20 by maintainers)

Most upvoted comments

Now, https://testng.com is set properly. I can’t reproduce the issue anymore.

You must enable logs with vscode settings.json

"xml.logs.client": true

and after you should see:

[Error - 19:30:05] Jun 11, 2019 07:30:05 org.eclipse.lsp4xml.uriresolver.CacheResourcesManager lambda$downloadResource$0()
Message: Error while downloading http://testng.org/testng-1.0.dtd to C:\Users\azerr\.lsp4xml\cache\http\testng.org\testng-1.0.dtd : [sun.security.provider.certpath.SunCertPathBuilderException] unable to find valid certification path to requested target

@cbeust To test your server configuration, you can try the following:

openssl s_client -connect testng.org:443

or https://whatsmychaincert.com/?testng.org

I think it should work