Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outgoing Webhooks, null response statusCode #4175

Closed
antoine-duchenet opened this issue Sep 2, 2016 · 0 comments
Closed

Outgoing Webhooks, null response statusCode #4175

antoine-duchenet opened this issue Sep 2, 2016 · 0 comments

Comments

@antoine-duchenet
Copy link

Our Rocket.Chat version: 0.38.0

Every call to an Outgoing Webhook gives us such a message :

I20160902-10:00:03.546(0) triggers.coffee:84 Integrations ➔ Outgoing WebHook.debug result { method: 'GET',   url: 'https://api.chucknorris.io/jokes/random',   headers: { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36' } } 
I20160902-10:00:03.713(0) Exception in callback of async function: TypeError: Cannot read property 'statusCode' of null     at packages/rocketchat_integrations/server/triggers.coffee:211:25     at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)  

The result is the same with GifRocket and our custom webhooks.

I quickly looked a the Rocket.Chat source code and it seems that the result object of our HTTP response is null.

Any idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants