Default incoming WebHook doesn't work
I istalled RocketChat (cloned from git and run with docker-compose)
Then, I try to run my default webhook
curl -X POST --data-urlencode 'payload={"text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","image_url":"https://rocket.chat/images/mockup.png","color":"#764FA5"}]}' http://192.168.0.127:3000/hooks/geKr7aGbQGRzTpBLF/tKbmNK3j4CATFy29c/FfmHUT%2FgCxoy3hK297BFKbXknY%2Fi3hepKp33%2BB6EI1Q%3D
But always I have an error curl: (52) Empty reply from server
Whats wrong ?
What does the log of the server says?
I run docker-compose logs, then enter in the browser Webhook URL http://192.168.0.127:3000/hooks/geKr7aGbQGRzTpBLF/tKbmNK3j4CATFy29c/FfmHUT%2FgCxoy3hK297BFKbXknY%2Fi3hepKp33%2BB6EI1Q%3D
Anything on logs and blue screen in Browser
I got error
{"status":"error","message":"API endpoint does not exist"}
I get a similar behaviour when I try the default suggested curl command: after the request is sent, there is a long timeout waiting for the reply and then just that "Empty reply from server" error.
@akopitsa @bsdcon which version are you using?
To get the version go to YOUR_SERVER_URL/api/info
@rodrigok
{
"version": "0.11.0",
"compile": {
"date": "2015-12-30T15:51:53.829Z",
"nodeVersion": "v0.10.40",
"arch": "x64",
"platform": "linux",
"osRelease": "3.13.0-63-generic",
"totalMemmory": 7844462592,
"freeMemmory": 5065953280,
"cpus": 2
},
"travis": {
"buildNumber": "2828",
"branch": "develop",
"tag": ""
},
"commit": {
"hash": "147ce2d626a37c462de8592c39d2d8ca54e4067e",
"date": "Wed Dec 30 13:28:37 2015 -0200",
"author": "Marcelo Schmidt",
"subject": "Button to test SMTP settings; No need to reload server for SMTP settings to take effect; Closes #1246 Checks SMTP Settings in #1492"
},
"tag": "v0.11.0",
"branch": "HEAD",
"GraphicsMagick": {
"enabled": true,
"version": "GraphicsMagick 1.3.20 2014-08-16 Q8 http://www.GraphicsMagick.org/\nCopyright (C) 2002-2014 GraphicsMagick Group.\nAdditional copyrights and licenses apply to this software.\nSee http://www.GraphicsMagick.org/www/Copyright.html for details.\n\nFeature Support:\n Native Thread Safe yes\n Large Files (> 32 bit) yes\n Large Memory (> 32 bit) yes\n BZIP yes\n DPS no\n FlashPix no\n FreeType yes\n Ghostscript (Library) no\n JBIG yes\n JPEG-2000 yes\n JPEG yes\n Little CMS yes\n Loadable Modules no\n OpenMP yes (201307)\n PNG yes\n TIFF yes\n TRIO no\n UMEM no\n WebP no\n WMF yes\n X11 yes\n XML yes\n ZLIB yes\n\nHost type: x86_64-pc-linux-gnu\n\nConfigured using the command:\n ./configure '--build' 'x86_64-linux-gnu' '--enable-shared' '--enable-static' '--enable-libtool-verbose' '--prefix=/usr' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--docdir=${prefix}/share/doc/graphicsmagick' '--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x' '--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11' '--without-dps' '--without-modules' '--without-frozenpaths' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -g -fno-strict-aliasing -O2' 'LDFLAGS=' 'CXXFLAGS=-Wall -g -fno-strict-aliasing -O2'\n\nFinal Build Parameters:\n CC = gcc -std=gnu99\n CFLAGS = -fopenmp -Wall -g -fno-strict-aliasing -O2 -Wall -pthread\n CPPFLAGS = -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2\n CXX = g++\n CXXFLAGS = -Wall -g -fno-strict-aliasing -O2 -pthread\n LDFLAGS = -L/usr/lib/X11 -L/usr/lib -L/usr/lib\n LIBS = -ljbig -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread\n"
},
"ImageMagick": {
"enabled": true,
"version": "Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org\nCopyright: Copyright (C) 1999-2014 ImageMagick Studio LLC\nFeatures: DPC Modules OpenMP\nDelegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib\n\n"
}
}
@akopitsa can you update your server to the latest version an try again?
@rodrigok I updated but nothing changed. Default incoming WebHook doesn't work
@akopitsa can you provide a print of your webhook config page?
@rodrigok how can I make it better ? Maybe screenshot ?
@akopitsa yes
@akopitsa are you sure you have updated? Can you please go to YOUR_SERVER_URL/api/info and confirm that you are using "version": "0.13.0"?
@engelgabriel I did git pull from master branch and then rebuilt containers or I need to use develop branch ?
@rodrigok


It should be enough, but please go to YOUR_SERVER_URL/api/info and confirm that you are using "version": "0.13.0"?
@engelgabriel You are right. still 0.11.0 How can I update without lost data ? I clonned from git and run docker-compose up -d
@engelgabriel @rodrigok I got new version
{
"version": "0.13.0",
"compile": {
"date": "2016-01-11T14:27:49.945Z",
"nodeVersion": "v0.10.40",
"arch": "x64",
"platform": "linux",
"osRelease": "3.13.0-63-generic",
"totalMemmory": 7844462592,
"freeMemmory": 4943417344,
"cpus": 2
},
"travis": {
"buildNumber": "2936",
"branch": "0.13.0",
"tag": "0.13.0"
},
"commit": {
"hash": "15d3e44efb14f51419291738944707b459d9a0c5",
"date": "Mon Jan 11 12:09:58 2016 -0200",
"author": "Gabriel Engel",
"subject": "Merge pull request #1854 from RocketChat/lingohub"
},
"tag": "0.13.0",
"branch": "HEAD",
"GraphicsMagick": {
"enabled": false
},
"ImageMagick": {
"enabled": true,
"version": "Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org\nCopyright: Copyright (C) 1999-2014 ImageMagick Studio LLC\nFeatures: DPC Modules OpenMP\nDelegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib\n\n"
}
}
Is the problem still happening? The URL on your screenshot is different from the one on your curl example on the top.
@engelgabriel No, also container with hubot can't start
Logs?