Closed Gordonei closed 5 years ago
Reproduction of the problem:
$ sudo docker exec -it metadata-registry-inspector bash -c /refresh.sh
2019-05-24T17:59:35+02:00 Refreshing content
no element found at line 2, column 0, byte 1:
^
at /usr/lib/x86_64-linux-gnu/perl5/5.24/XML/Parser.pm line 187.
2019-05-24T17:59:39+02:00 No more content found at 'https://172.29.100.54:8001/metadata-registry-inspector'
2019-05-24T17:59:39+02:00 Finished refreshing content
Turns out it was because the CONTENT_URL
was malformed. Should probably add more explicit error handling for that.
Some sort of preliminary check to see whether the response is in fact a minio/S3 bucket list.
Looks like the XML parser is breaking on the response from Minio/S3.
Place to start would be this line, which parses the response..