Giter Club home page Giter Club logo

Comments (4)

ppacher avatar ppacher commented on June 12, 2024

This actually seems like your clair server returns a HTML document (invalid character '<' looking for beginning of value) instead of a valid JSON response. Make sure you have setup the server correctly.

The second error message (transport is closing) is just the result of klar trying V1 first and falling back to V3 on any error. Since clair has not been released with APIv3 yet the server is closing the connection.

from klar.

hashmap avatar hashmap commented on June 12, 2024

Closing because of inactivity, I hope the latest release fixed it. Let me know if the issue needs to be reopened.

from klar.

Karreg avatar Karreg commented on June 12, 2024

I ran on the same issue while trying klar today.

The issue is more clear with traces:

<---- HTTP RESPONSE:
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 279
Content-Type: text/html
Date: Tue, 10 Jul 2018 08:19:13 GMT
Server: nginx/1.4.6 (Ubuntu)

<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>

ImageV1 decode error
Can't pull image: invalid character '<' looking for beginning of value

But while the issue seems clear, I was not able to find how to setup Clair on http, or klar to send https requests. I'll dig through the documentations of both tools, but any hint, if you have one, would help. Thanks!

from klar.

Karreg avatar Karreg commented on June 12, 2024

OK, found it. I mixed the two klar options DOCKER_INSECURE and REGISTRY_INSECURE.
The second one seemed to be the one I needed because the registry is on https with self signed certificate.
I will update the issue with further findings...

from klar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.