Code Monkey home page Code Monkey logo

Comments (5)

Spriter avatar Spriter commented on June 14, 2024

FYI -> I have an answer from the ibm cloud slack community

Hi,
the answere is sloppy because I don’t have time at the moment, but just not not leave you hanging, because its no fun, the short version is:
CouchDB repository you are using uses curl that has a bug on the linux version you are using hence it’s failing, I think.
To work around you can use different linux version I suppose if you have that kind of control over it and if not the workaround has been to use Kitura NIO that does not use curl.
But if you don’t have control over linux because you are using CloudFoundry then Kitura NIO will not deploy due to out of space error.
To solve it you need to disable the build dir cache. You can read about how to enable NIO and disable Cache here:
https://github.com/IBM-Swift/swift-buildpack#caching-of-the-build-directory
Unfortunatley that doesn’t work either with latest Swift so in that case we are out of luck.
Hope I didn’t lie about anything, it’s late and I need to run, but you can read more about it in the #ibm-cloud channel

from kitura-net.

geertberkers avatar geertberkers commented on June 14, 2024

Today I encountered the same problem on my own Kitura-net Fork. The only workaround for now was to specify HTTP 1.0 instead of HTTP 1.1 because HTTP 1.0 does not return chunked format.

I know this is only a temporary solution, but it works for me currently (still in development, not in production)

Commit:
https://github.com/geertberkers/Kitura-net/blob/2760af18ed972d05b17bbfbe079734fd403bce58/Sources/KituraNet/ClientRequest.swift#L699

Note:
This depends on an older version of Kitura-net, but I added a lot more information to specify Client Certificate information, the selected line is everything you need to change the HTTP Version

from kitura-net.

Spriter avatar Spriter commented on June 14, 2024

I will definitely try it! I have still no other solution for this.

from kitura-net.

crspybits avatar crspybits commented on June 14, 2024

I had this issue a while back too. The same error message. My solution was to use Ubuntu 16.04. I ran into this issue on Ubuntu 18.04. I am still working on Ubuntu 16.04 so not sure if the issue still occurs with 18.04. Another reference to this issue is: #312

from kitura-net.

Santhosh-KS avatar Santhosh-KS commented on June 14, 2024

I had the same problem. I exported the KITURA_NIO=1 as suggested in this post and started using NIO package instead of Kitura net package. That picks the correct version of curl libs i guess.

from kitura-net.

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.