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

Guggy Integration cannot work #5762

Closed
mehdiyahyaoui opened this issue Jan 24, 2017 · 2 comments
Closed

Guggy Integration cannot work #5762

mehdiyahyaoui opened this issue Jan 24, 2017 · 2 comments

Comments

@mehdiyahyaoui
Copy link

Hello

I'm Running 0.50.0
Snap
Ubuntu 64

I created the web-hook with indication from Doc

But I have this error message in the Log:

Exception in callback of async function: TypeError: Cannot read property 'statusCode' of null at /snap/rocketchat-server/446/programs/server/packages/rocketchat_integrations.js:1316:30 at runWithEnvironment (packages/meteor.js:1176:24)

I set Trigger Word as "guggy" without ! mark
Basically nothing is happening when I type : guggy "something"
and when I go to log I see the message above

Help Plz

@graywolf336
Copy link
Contributor

Can you try to update and try again? As this is working in the demo server 🤔

rodrigok pushed a commit that referenced this issue Feb 16, 2017
* Convert the majority of the integrations package to JavaScript

* Move the trigger handler to it's own class

* Start trying to generalize integration items

* Yay, additional events trigger outgoing webhooks

* Silence codacy and fix eslint problems.

* Started work on user created event for outgoing integrations

* Finish the outgoing integration work on the user created event.

* Add user join and leave room events for outgoing webhooks

* Add fields to the rest api integration creation and clean up the processWebhookMessage

* Add the HTTP to the incoming webhook context

* Don't check for property on result if it isn't there.
Closes #4175, #5762, and #5896.

* Add archive room and file upload events for the webhooks

* Disable integrations when the user to run/post as gets deleted.

* Try to fix the tests failing due to the requird events property

* Add history of integration which get fired

* Add the missing file for the IntegrationHistory

* Fix deleting users being broke due to my code

* Add the outgoing webhook integration history viewing page along with v1 rest api to retrieve it

* Integration history replays are now enabled along with advanced settings

* Work on the advanced settings and enable paging on the integration history

* Enable i18n for the history and advanced settings

* Update the wording on the word placement

* Move migration to be 88 now.

* Add missing translations for the webhooks

* Fix en.i18n.json identation

* Fix integrations.html indentation

* Fix more identations

* Fix identation of integrationsOutgoing.html
@mehdiyahyaoui
Copy link
Author

mehdiyahyaoui commented Mar 15, 2017

Hello

Sorry for not reporting back on the issues

My Problems is still the same - the integration not working

Here's what it shows on the log


 �[34mI20170315-08:57:03.010(1) rocketchat_integrations rocketchat_integrations.js:854 �[31mIntegrations ➔ Outgoing WebHook.error Error running Script in the Integration Guggy: 
�[34mI20170315-08:57:03.013(1) rocketchat_integrations rocketchat_integrations.js:857 �[31mIntegrations ➔ Outgoing WebHook.error Stack: 
�[34mI20170315-08:57:03.014(1) rocketchat_integrations rocketchat_integrations.js:858 �[31mIntegrations ➔ Outgoing WebHook.error   TypeError: Cannot read property 'gif' of undefined       at Script.process_outgoing_response (script.js:1:1188)       at evalmachine.<anonymous>:1:15       at ContextifyScript.Script.runInNewContext (vm.js:18:15)       at Object.exports.runInNewContext (vm.js:49:17)       at /snap/rocketchat-server/528/programs/server/packages/rocketchat_integrations.js:835:29       at RocketChatIntegrationHandler.executeScript (/snap/rocketchat-server/528/programs/server/packages/rocketchat_integrations.js:844:6)       at /snap/rocketchat-server/528/programs/server/packages/rocketchat_integrations.js:1462:32       at runWithEnvironment (packages/meteor.js:1176:24) 
�[34mI20170315-08:57:03.017(1) rocketchat_integrations rocketchat_integrations.js:1496 �[31mIntegrations ➔ Outgoing WebHook.error Error for the Integration "Guggy" to http://text2gif.guggy.com/guggify is: 
�[34mI20170315-08:57:03.019(1) rocketchat_integrations rocketchat_integrations.js:1497 �[31mIntegrations ➔ Outgoing WebHook.error { [Error: getaddrinfo EAI_AGAIN text2gif.guggy.com:80]   code: 'EAI_AGAIN',   errno: 'EAI_AGAIN',   syscall: 'getaddrinfo',   hostname: 'text2gif.guggy.com',   host: 'text2gif.guggy.com',   port: 80 }

below the version of my RC instance

image

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

3 participants