GithubHelp home page GithubHelp logo

Comments (5)

davehorton avatar davehorton commented on August 17, 2024

This happens not only on file downloads, but also GET requests to api/v1/search/data -- again, only if the amount of data is large enough. If I filter only one or a few records, they display but if I bring back 1000 then the content length is off and I get a JSON parse error as a result

from homer-api.

davehorton avatar davehorton commented on August 17, 2024

I'm noticing that the latest checked-in homer-api has this:

    public function setContentLength($pMessage)
    {
	//Fix for MAC Safary and Chrome + 2 for response
        if (php_sapi_name() !== 'cli' )
            header('Content-Length: '.strlen($pMessage)+2);
    }

while my running container has this:

    public function setContentLength($pMessage)
    {
        if (php_sapi_name() !== 'cli' )
            header('Content-Length: '.strlen($pMessage));
    }

This looks like it could be the cause, I will investigate updating my image

from homer-api.

davehorton avatar davehorton commented on August 17, 2024

ok so it looks like it was fixed in this commit:
ec17e43
but the homer-complete image does not include it:
https://github.com/sipcapture/homer-docker/blob/master/webapp/Dockerfile#L20

I can deploy that fix and build my own image, but wondering if there is plans to release a new homer-complete image at some point with this fix?

If my diagnosis is faulty please let me know

from homer-api.

lmangani avatar lmangani commented on August 17, 2024

Thanks for the update @davehorton - I guess all we need is retrigger the Docker builders. I'm trying so now, will confirm once ready to retest, please standby

from homer-api.

adubovikov avatar adubovikov commented on August 17, 2024

http://install.sipcapture.io/

from homer-api.

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.