Closed maaikelimper closed 2 years ago
@maaikelimper can you provide a test case to help reproduce?
I can confirm that product with identifier urn:x-wmo:md:int.wmo.wis::HJXA88ECMF
causes such error in KPI 8 "Links health". Somehow we expected to see only HTTP/HTTPS but here it is FTP. I will have a look at it.
@maaikelimper Can you confirm that the fix resolves your issue?
Hi, I can confirm the latest version of pywcmp no longer crashes on this file with this error.
I note that for KPI-8, the file with identifier=urn:x-wmo:md:int.wmo.wis::HJXA88ECMF gets a score of 6 out of a total of 14 -> It has a total of 7 links, one returns 404 and no result passes "result.get('ssl') is True". I guess this is OK, not sure if the code would need to identify sftp vs ftp ?
not sure if the code would need to identify sftp vs ftp ?
The current implementation is able to verify HTTP, HTTPS and FTP connections. Unfortunately, for SFTP we would need to use a different library. Are there any SFTP links in the metadata?
fwiw, a quick grep of the WIS Metadata Catalogue dump shows some descriptions of SFTP services, but no protocol references per se.
When running pywcmp's "evaluate()" over a sample of sets it sometimes crashes on AttributeError: '_io.BufferedReader' object has no attribute 'status'