Code Monkey home page Code Monkey logo

Comments (4)

mickmister avatar mickmister commented on July 19, 2024

Hi @JackPala, thanks for reporting this. Can you please let us know what plugin version and MM server version you're running?

failed to ensure github bot: failed to create bot: Bot.IsValid: Invalid creator id

@hanzei Any ideas on this? Here's where the error occurs on the server:

https://github.com/mattermost/mattermost/blob/0409a2285df85b79e6025ff26fead709982b71d2/server/public/model/bot.go#L102-L104

	if b.OwnerId == "" || utf8.RuneCountInString(b.OwnerId) > BotCreatorIdMaxRunes {
		return NewAppError("Bot.IsValid", "model.bot.is_valid.creator_id.app_error", b.Trace(), "", http.StatusBadRequest)
	}

The OwnerId should indeed always be set per #598

OwnerId: Manifest.Id, // Workaround to support older server version affected by https://github.com/mattermost/mattermost-server/pull/21560

and should be set my the server on recent server versions otherwise anyway https://github.com/mattermost/mattermost/blob/791ee40568214ee4444ec31fab7d0802b5aac40f/server/channels/app/plugin_api.go#L994


Just a guess, but maybe there existed a manually created GitHub bot before the plugin was first activated? Not sure if that would cause this though. @JackPala Any ideas on what may be specific to your environment?

from mattermost-plugin-github.

JackPala avatar JackPala commented on July 19, 2024

I was using the latest github plugin, and mattermost 7.0.1 , but upgrading to version Mattermost 9 docker compose appears to have fixed it

from mattermost-plugin-github.

JackPala avatar JackPala commented on July 19, 2024

Perhaps an incompatible github plugin version could be installed on mattermost 7.0.1? Runs fine now that's it is on 9

from mattermost-plugin-github.

hanzei avatar hanzei commented on July 19, 2024

@JackPala Mattermost 7.0.1 is an unsupported version. The plugin might not be working with that version.

Closing as the update fixes the issue.

from mattermost-plugin-github.

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.