Giter Club home page Giter Club logo

Comments (7)

ncarlier avatar ncarlier commented on July 17, 2024

Hello,

can you share the script content?
According to cURL documentation error code 18 refers to:

A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.

This might mean that the script contains an asynchronous process. The script is finished but stdout keeps writing something.

from webhookd.

Tibingeo avatar Tibingeo commented on July 17, 2024

I was running a sample script to test timeout feature, my script just have

sleep 15
echo "Completed"

from webhookd.

Tibingeo avatar Tibingeo commented on July 17, 2024

Also tried with another script

for i in {1..15}
do
    sleep 1
    echo `date +%s`
done

OUTPUT

data: Hook work request "run_behave" queued...
data: 1521639175
data: 1521639176
data: 1521639177
data: 1521639178
data: 1521639179
data: 1521639180
data: 1521639181
data: 1521639182
data: 1521639183
curl: (18) transfer closed with outstanding read data remaining

Failed after 10 seconds
tried passing -H "X-Hook-Timeout: 15" also did not work.

If I see webhookd log it stays until script execution

Script /webapps/pacman/bin/scripts/run_behave.sh executed wit SUCCESS

from webhookd.

ncarlier avatar ncarlier commented on July 17, 2024

I've spotted the problem. The HTTP server has an overall timeout of 10 seconds.
I just fixed that and pushed a new release: 1.2.2

Thanks a lot!

from webhookd.

Tibingeo avatar Tibingeo commented on July 17, 2024

Thank You @ncarlier for fixing this issue.

from webhookd.

Tibingeo avatar Tibingeo commented on July 17, 2024

Now is HTTP server timeout is configurable ?

from webhookd.

ncarlier avatar ncarlier commented on July 17, 2024

Not currently. It's configured indirectly with the hook's timeout (at least for the server writing timeout).
Maybe in a next release I will set a configurable maximum limit.

from webhookd.

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.