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

INVALID_CONFIG when attempting to enable Slack alert #25

Closed
zalerner opened this issue Nov 16, 2016 · 3 comments
Closed

INVALID_CONFIG when attempting to enable Slack alert #25

zalerner opened this issue Nov 16, 2016 · 3 comments

Comments

@zalerner
Copy link

Hi Eduardo,

First off, thanks for building and maintaining such a fantastic app! Our team has been pretty excited since we discovered it.

I'm currently trying to set up Slack integration, but I've been getting a 500 error when uncomment and complete the block of slack settings. Here's what my block of alert settings looks like:

alerts:
  emailAlert:
    type: "email"
    recipients: ["0d2506eea47a1a60f30f332d044bffc6f14de97d44f814f2"]
#  otherEmailAlert:
#    type: "email"
#    recipients: ["ENCRYPTED_EMAIL_ADDRESS2", "ENCRYPTED_EMAIL_ADDRESS3"]
   slackAlert:
     type: "slack"
     hookUrl: "1f3011f5f92c503df5052e061504fed8f542ec2a09f416b0adef6ecf552c16949005b130ae3b6f33ab0af782ebebd56540bd255ac700c5b02843572db57cd7c110d797a0b9c0d076fc4cd8cd65"
     channel: "#speedtracker"
     username: "SpeedTracker"
     iconEmoji: ":grimacing:"

Here's the url that the error displays in inspector (with the key obscured):

https://api.speedtracker.org/v1/test/zalerner/speedtracker/master/caruso?key=XXXXXXXXXXXXX

When loading that I get the following instead of what it typically returns when the test has been submitted successfully:

{"success":false,"error":{"code":"INVALID_CONFIG"}}

I noticed that my encrypted hook url looks kind of long, so I'm not sure if I'm maybe entering the wrong thing when encrypting. Here's what my hook url looks like (more or less) before encrypting it:

https://hooks.slack.com/services/T02XXXXXXX1H/B33XXXXXXZ2R/fCXetKrXXXXXXXXX1jkTnyp

Let me know if there's anything I may be missing!

@eduardoboucas
Copy link
Member

Your slackAlert block seems to have an indentation problem, as it's one space deeper than emailAlert. Can you try correcting that?

@eduardoboucas
Copy link
Member

Closing. Please reopen if still an issue.

@zalerner
Copy link
Author

That did it. Thanks!

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

No branches or pull requests

2 participants