mattermost-plugin-zoom: Cannot authorize OAuth zoom plugin: invalid state, 500 internal server error

I’m trying to set up mattermost-plugin-zoom 1.4.1 (OAuth) according to manual https://mattermost.gitbook.io/plugin-zoom/installation/zoom-configuration/zoom-setup-oauth

I stuck on activation stage, Install your app->Activate throws browser:

invalid state
500 internal server error

mattermost.log:

{"level":"info","ts":1596120717.8517437,"caller":"go-plugin@v1.2.2/stream.go:15","msg":"2020/07/30 16:51:57 stateComponents: [], state:","plugin_id":"zoom","source":"plugin_stderr"}
{"level":"error","ts":1596120717.857073,"caller":"mlog/log.go:175","msg":"Plugin failed to ServeHTTP, RPC call failed","plugin_id":"zoom","error":"unexpected EOF"}
{"level":"error","ts":1596120717.857321,"caller":"http/server.go:3059","msg":"http: superfluous response.WriteHeader call from github.com/mattermost/mattermost-server/v5/plugin.(*hooksRPCClient).ServeHTTP (client_rpc.go:336)","source":"httpserver"}
{"level":"error","ts":1596120728.2407198,"caller":"plugin/health_check.go:59","msg":"Health check failed for plugin","id":"zoom","error":"Plugin RPC connection is not responding"}
{"level":"warn","ts":1596120728.2415211,"caller":"plugin/hclog_adapter.go:69","msg":"error closing client during Kill","plugin_id":"zoom","wrapped_extras":"errconnection is shut down"}
{"level":"warn","ts":1596120728.2417154,"caller":"plugin/hclog_adapter.go:71","msg":"plugin failed to exit gracefully","plugin_id":"zoom"}

Mattermost Version: 5.24.2 Database Schema Version: 5.24.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 32 (19 by maintainers)

Most upvoted comments

@Kshitij-Katiyar Interesting. So having the missing scope in the Zoom UI causes an invalid state error, or invalid OAuth user state error? It seems in this thread we are discussing two different error messages so trying to differentiate.

@srpape Are you able to check if selecting the above 3 OAuth scopes fixes the issue you were experiencing? Thank you

@Kshitij-Katiyar We’ve had another report of this, so reopening the issue. I’ve put this on the issue board for investigation

@Kshitij-Katiyar I’d say let’s leave it closed unless it’s determined that there needs to be a code change here

@umairjamali Do you have any more information on how this was produced, that may be specific to your environment? I assume you ran /zoom connect to connect your account? Is the plugin configured correctly otherwise?