Code Monkey home page Code Monkey logo

Comments (11)

ltsavar avatar ltsavar commented on May 28, 2024 1

I tried to compile it on my own with a newer mattermost-server version and the demo app from https://github.com/mattermost/mattermost-plugin-demo/ but it still failed with

/usr/bin/go vet ./...

github.com/cpanato/mattermost-plugin-alertmanager/server [github.com/cpanato/mattermost-plugin-alertmanager/server.test]

server/webhook.go:23:14: undefined: notify.WebhookMessage
make: *** [Makefile:69: govet] Fehler 2

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

@ltsavar thanks for the report, i will try to find some time to fix that

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

same here you need to set an
Screenshot 2020-01-24 at 15 28 07
existing team name

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

for example the team name you can get in the URL (in the screenshot marked in the red box) and team (blue)
Screenshot 2020-01-24 at 15 30 56

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

Also tested with 5.17 and works

from mattermost-plugin-alertmanager.

ltsavar avatar ltsavar commented on May 28, 2024

The release version from: https://github.com/cpanato/mattermost-plugin-alertmanager/releases/download/v0.0.1/com.cpanato.alertmanager-0.0.1.tar.gz
is not working for me.

{"level":"error","ts":1579876719.0602252,"caller":"mlog/log.go:174","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"unable to start plugin: com.cpanato.alertmanager: Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters, id=75i5gjodp3bb5k5e5xndai67hr","errorVerbose":"Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters, id=75i5gjodp3bb5k5e5xndai67hr\nunable to start plugin: com.cpanato.alertmanager\ngithub.com/mattermost/mattermost-server/plugin.(*Environment).Activate\n\t/go/src/github.com/mattermost/mattermost-server/plugin/environment.go:251\ngithub.com/mattermost/mattermost-server/app.(*App).SyncPluginsActiveState\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:100\ngithub.com/mattermost/mattermost-server/app.(*App).InitPlugins.func2\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:183\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners.func1\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:35\nsync.(*Map).Range\n\t/usr/local/go/src/sync/map.go:333\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/config.(*commonStore).set\n\t/go/src/github.com/mattermost/mattermost-server/config/common.go:90\ngithub.com/mattermost/mattermost-server/config.(*FileStore).Set\n\t/go/src/github.com/mattermost/mattermost-server/config/file.go:107\ngithub.com/mattermost/mattermost-server/app.(*App).SaveConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:378\ngithub.com/mattermost/mattermost-server/app.(*App).EnablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:333\ngithub.com/mattermost/mattermost-server/api4.enablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/api4/plugin.go:298\ngithub.com/mattermost/mattermost-server/web.Handler.ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/web/handlers.go:148\ngithub.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/NYTimes/gziphandler/gzip.go:336\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:1995\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux/mux.go:212\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2774\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1878\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}

the team as just 2 Chars.

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

@ltsavar is not complaining about the Team is failing in the Channel

Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters

please review your channel name

from mattermost-plugin-alertmanager.

ltsavar avatar ltsavar commented on May 28, 2024

I did. Its correct. I tried an other one just in case. But still not working.
Same error but both channel exists.

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

@ltsavar can you send to me your config? otherwise it is very hard to help you, since I'm able to run the plugin using lastest master and version 5.17.0 as well

from mattermost-plugin-alertmanager.

ltsavar avatar ltsavar commented on May 28, 2024

so the problem seems to be if i use just one Uppcase in the channel or in the team it brakes.
if i use lowercase everywhere its working. Maybe thats something we could quickfix somehow? :)

from mattermost-plugin-alertmanager.

cpanato avatar cpanato commented on May 28, 2024

I glad this is working.
all channels and team are lower case, the uppercase you see is the display name which can be any name.

closing this issue

from mattermost-plugin-alertmanager.

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.