Giter VIP home page Giter VIP logo

Comments (7)

SvyatoslavScherbina avatar SvyatoslavScherbina commented on June 5, 2024

Hi.

org.jetbrains.kotlin.konan.util.DependencyDownloader$HTTPResponseException: Server returned HTTP response code: 407 for URL: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz

Looks like a local problem on your side. 407 is "Proxy Authentication Required". Do you use any proxy that requires authentication? Does the link work from your browser?
I can download this file just fine.

Also, I'm just curious: how did you create this issue? "New issue" button for kotlin-native repository on GitHub web site doesn't allow to create one (and this is intentional). So did you use a custom GitHub client or whatever?

from kotlin-native.

cleanerx avatar cleanerx commented on June 5, 2024

The problem is for sure on my side since I'm frequently confronted with our proxy and subsequent problems :-)
However setting the properties 'somewhere' is usually the resolution. I think the problem here is that neither IDEA in which I started the project nor gradle https proxy settings where honored since it is a standalone solution.
Depending on the java library used for http different methods exist for setting the proxy.
If the java standard libary is being used I will have problems since it does not allow to set the proxy password and username since a standalone implementation is used.
So where exactly do I need to set proxy settings in order to retrieve the file properly.

Note: I used new issue from standard github.

from kotlin-native.

SvyatoslavScherbina avatar SvyatoslavScherbina commented on June 5, 2024

I will provide the details and maybe a workaround later.

Note: I used new issue from standard github.

What do you mean by "standard github"? Is it the github.com website, or some standard app?
For the website, if I press "New issue" button on the issues page, the following page opens: https://github.com/JetBrains/kotlin-native/issues/new/choose
It doesn't seem to have an option to create new issue on GitHub on my side.

So, where do you use "new issue" and which URL does it navigate you to?

from kotlin-native.

cleanerx avatar cleanerx commented on June 5, 2024

The issue was posted through the web page. But I'm not sure about the entry point. There was another issue which was closed where someone posted the same 407 but unrelated to the original issue. I must have been starting from there. Looking right now I'm also being presented to the triple choice you presumably suggest.

from kotlin-native.

SvyatoslavScherbina avatar SvyatoslavScherbina commented on June 5, 2024

The compiler uses standard Java's URL.openConnection. I'm not sure that one can easily configure it to use an authenticated proxy without patching the compiler.

As the last option, please try the following:

  1. Download the archive manually
  2. Unpack it into ~/.konan/dependencies
  3. Add its name to ~/.konan/dependencies/.extracted.

The same should probably be done for other similar dependencies, should be around 4 of them if you use only one target.
Anyway, this workaround can easily be automated with a script.
Does this work for you?

Submitting an issue to YouTrack also makes sense: https://kotl.in/issue.

from kotlin-native.

cleanerx avatar cleanerx commented on June 5, 2024

Usually for standard Java an Authenticator must be provided like here:
https://stackoverflow.com/questions/1626549/authenticated-http-proxy-with-java

I'll check the suggested solution.

from kotlin-native.

cleanerx avatar cleanerx commented on June 5, 2024

This worked around the proxy problem. I opened another issue because a library is missing so I couldn't get it to compile.

from kotlin-native.

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.