Interactive mesasage update does not work since last Mattermost upgrades

Mattermost Edición Team T0
Versión de Mattermost: 9.5.2
Versión de la base de datos: 119
Número de compilación: 8115857622
Base de datos: postgres
Using docker prebuilded version mattermost/mattermost-team-edition since 5.37

Problem begins when upgraded from 9.3.0 to 9.5.1
It does not update interactive messages anymore

Interactive message generated as:

{
    "attachments": [{
        "actions": [{
            "integration": {
                "context": {
                    "action": "do_confirm",
                    "duuid": "acb460ec-c257-49cb-99eb-39cb009c46d8"
                },
                "url": "http://someurl:9876/confirm?duuid=acb460ec-c257-49cb-99eb-39cb009c46d8&action=confirm"
            },
            "name": "Confirm",
            "style": "danger"
        }, {
            "integration": {
                "context": {
                    "action": "default",
                    "duuid": "acb460ec-c257-49cb-99eb-39cb009c46d8"
                },
                "url": "http://someurl:9876/confirm?duuid=acb460ec-c257-49cb-99eb-39cb009c46d8&action=cancel"
            },
            "name": "Cancel",
            "style": "danger"
        }],
        "pretext": "some text.",
        "text": "more text  "
    }],
    "response_type": "in_channel"
}

When click on any button mattermost raises action.
application server get the request and responds with:

{
    "update": {
        "message": "Confirmed!",
        "props": {}
    }
}

Content-Type: application/json header is present

Mattermost server says

{
  "timestamp": "2024-03-14 XXXXXXXX",
  "level": "debug",
  "msg": "Action integration error.",
  "caller": "web/context.go:111",
  "path": "/api/v4/posts/y96oq7knftf75msd8znxtgc4yc/actions/gf9xxho6i7yaddg9qc5qghqjxw",
  "request_id": "abn1mzbg3bgj38kmg1ig753syo",
  "ip_addr": "xxx.xxx.xxx.xxx",
  "user_id": "ed86pdzjnf8auggenda35i387e",
  "method": "POST",
  "err_where": "DoPostActionWithCookie",
  "http_code": 400,
  "error": "DoPostActionWithCookie: Action integration error., context canceled"
}

and do not update message.

It was working right on 9.3.0 version. It was updating message as expected
On version 9.5.2 does not work. 9.5.1 neither

Confirmed

It stop working since 9.5.0

Reproducible behavior on fresh new clean containers, empty databases, default configuration, no changes

docker container mattermost/mattermost-team-edition:9.4.4 - fea3d3c0da1b
Mattermost Team Edition
Mattermost Version: 9.4.4
Database Schema Version: 117
Build Number: 8140906565
Database: postgres

9.4.4 updates interactive message as specified on first post. It works on 9.4.4

docker container mattermost/mattermost-team-edition:9.5.0 - bfd1e3d81e3b
Mattermost Team Edition
Mattermost Version: 9.5.0
Database Schema Version: 119
Build Number: 7743331626
Database: postgres

9.5.0 does NOT update interactive message. It does not work on 9.5.0

We’re looking into this.

Hi @ealonso,

Thanks for the report. Can you please let me know what the value of the config setting OutgoingIntegrationRequestsDefaultTimeout on your server is?

Can you please try increasing the setting to 60 and check if that fixes your issue?

Already incresed value up to 600, but same behaviour. Actual value is 300

Tests sending curl from mattermost server to our application server generates response under 2 seconds (DNS resolution + request + response time)

Current config
{
    "ServiceSettings": {
        "SiteURL": "https://mattermost.xxxxxxxx.com",
        "WebsocketURL": "",
        "LicenseFileLocation": "",
        "ListenAddress": ":8065",
        "ConnectionSecurity": "",
        "TLSCertFile": "",
        "TLSKeyFile": "",
        "TLSMinVer": "1.2",
        "TLSStrictTransport": false,
        "TLSStrictTransportMaxAge": 63072000,
        "TLSOverwriteCiphers": [],
        "UseLetsEncrypt": false,
        "LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
        "Forward80To443": false,
        "TrustedProxyIPHeader": [
            "X-Forwarded-For",
            "X-Real-IP"
        ],
        "ReadTimeout": 300,
        "WriteTimeout": 300,
        "IdleTimeout": 60,
        "MaximumLoginAttempts": 10,
        "GoroutineHealthThreshold": -1,
        "EnableOAuthServiceProvider": false,
        "EnableIncomingWebhooks": true,
        "EnableOutgoingWebhooks": true,
        "EnableCommands": true,
        "OutgoingIntegrationRequestsTimeout": 300,
        "EnablePostUsernameOverride": true,
        "EnablePostIconOverride": true,
        "GoogleDeveloperKey": "",
        "EnableLinkPreviews": true,
        "EnablePermalinkPreviews": true,
        "RestrictLinkPreviews": "",
        "EnableTesting": false,
        "EnableDeveloper": false,
        "DeveloperFlags": "",
        "EnableClientPerformanceDebugging": false,
        "EnableOpenTracing": false,
        "EnableSecurityFixAlert": true,
        "EnableInsecureOutgoingConnections": false,
        "AllowedUntrustedInternalConnections": "",
        "EnableMultifactorAuthentication": true,
        "EnforceMultifactorAuthentication": false,
        "EnableUserAccessTokens": true,
        "AllowCorsFrom": "",
        "CorsExposedHeaders": "",
        "CorsAllowCredentials": false,
        "CorsDebug": false,
        "AllowCookiesForSubdomains": false,
        "ExtendSessionLengthWithActivity": true,
        "SessionLengthWebInDays": 180,
        "SessionLengthWebInHours": 48,
        "SessionLengthMobileInDays": 180,
        "SessionLengthMobileInHours": 48,
        "SessionLengthSSOInDays": 30,
        "SessionLengthSSOInHours": 48,
        "SessionCacheInMinutes": 30,
        "SessionIdleTimeoutInMinutes": 0,
        "WebsocketSecurePort": 443,
        "WebsocketPort": 80,
        "WebserverMode": "gzip",
        "EnableGifPicker": true,
        "GiphySdkKey": "",
        "EnableCustomEmoji": true,
        "EnableEmojiPicker": true,
        "PostEditTimeLimit": -1,
        "TimeBetweenUserTypingUpdatesMilliseconds": 5000,
        "EnablePostSearch": true,
        "EnableFileSearch": true,
        "MinimumHashtagLength": 3,
        "EnableUserTypingMessages": true,
        "EnableChannelViewedMessages": true,
        "EnableUserStatuses": true,
        "ExperimentalEnableAuthenticationTransfer": true,
        "ClusterLogTimeoutMilliseconds": 2000,
        "EnablePreviewFeatures": true,
        "EnableTutorial": true,
        "EnableOnboardingFlow": true,
        "ExperimentalEnableDefaultChannelLeaveJoinMessages": true,
        "ExperimentalGroupUnreadChannels": "disabled",
        "EnableAPITeamDeletion": false,
        "EnableAPITriggerAdminNotifications": false,
        "EnableAPIUserDeletion": false,
        "ExperimentalEnableHardenedMode": true,
        "ExperimentalStrictCSRFEnforcement": false,
        "EnableEmailInvitations": true,
        "DisableBotsWhenOwnerIsDeactivated": true,
        "EnableBotAccountCreation": true,
        "EnableSVGs": true,
        "EnableLatex": true,
        "EnableInlineLatex": true,
        "PostPriority": true,
        "AllowPersistentNotifications": true,
        "AllowPersistentNotificationsForGuests": false,
        "PersistentNotificationIntervalMinutes": 5,
        "PersistentNotificationMaxCount": 6,
        "PersistentNotificationMaxRecipients": 5,
        "EnableAPIChannelDeletion": false,
        "EnableLocalMode": true,
        "LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
        "EnableAWSMetering": false,
        "SplitKey": "********************************",
        "FeatureFlagSyncIntervalSeconds": 30,
        "DebugSplit": false,
        "ThreadAutoFollow": true,
        "CollapsedThreads": "disabled",
        "ManagedResourcePaths": "",
        "EnableCustomGroups": true,
        "SelfHostedPurchase": true,
        "AllowSyncedDrafts": true,
        "UniqueEmojiReactionLimitPerPost": 50,
        "RefreshPostStatsRunTime": "00:00",
        "MaximumPayloadSizeBytes": 100000
    },
    "TeamSettings": {
        "SiteName": "Mattermost",
        "MaxUsersPerTeam": 50,
        "EnableJoinLeaveMessageByDefault": true,
        "EnableUserCreation": true,
        "EnableOpenServer": false,
        "EnableUserDeactivation": false,
        "RestrictCreationToDomains": "xxxxxxxxxx.com",
        "EnableCustomUserStatuses": true,
        "EnableCustomBrand": true,
        "CustomBrandText": "",
        "CustomDescriptionText": "",
        "RestrictDirectMessage": "any",
        "EnableLastActiveTime": true,
        "UserStatusAwayTimeout": 300,
        "MaxChannelsPerTeam": 2000,
        "MaxNotificationsPerChannel": 50,
        "EnableConfirmNotificationsToChannel": true,
        "TeammateNameDisplay": "username",
        "ExperimentalViewArchivedChannels": true,
        "ExperimentalEnableAutomaticReplies": true,
        "LockTeammateNameDisplay": false,
        "ExperimentalPrimaryTeam": "",
        "ExperimentalDefaultChannels": []
    },
    "ClientRequirements": {
        "AndroidLatestVersion": "",
        "AndroidMinVersion": "",
        "IosLatestVersion": "",
        "IosMinVersion": ""
    },
    "SqlSettings": {
        "DriverName": "postgres",
        "DataSource": "********************************",
        "DataSourceReplicas": [],
        "DataSourceSearchReplicas": [],
        "MaxIdleConns": 20,
        "ConnMaxLifetimeMilliseconds": 3600000,
        "ConnMaxIdleTimeMilliseconds": 300000,
        "MaxOpenConns": 300,
        "Trace": false,
        "AtRestEncryptKey": "********************************",
        "QueryTimeout": 30,
        "DisableDatabaseSearch": false,
        "MigrationsStatementTimeoutSeconds": 100000,
        "ReplicaLagSettings": [],
        "ReplicaMonitorIntervalSeconds": 5
    },
    "LogSettings": {
        "EnableConsole": false,
        "ConsoleLevel": "DEBUG",
        "ConsoleJson": false,
        "EnableColor": false,
        "EnableFile": true,
        "FileLevel": "ERROR",
        "FileJson": true,
        "FileLocation": "",
        "EnableWebhookDebugging": true,
        "EnableDiagnostics": true,
        "VerboseDiagnostics": false,
        "EnableSentry": true,
        "AdvancedLoggingJSON": {},
        "AdvancedLoggingConfig": "",
        "MaxFieldSize": 2048
    },
    "ExperimentalAuditSettings": {
        "FileEnabled": false,
        "FileName": "",
        "FileMaxSizeMB": 100,
        "FileMaxAgeDays": 0,
        "FileMaxBackups": 0,
        "FileCompress": false,
        "FileMaxQueueSize": 1000,
        "AdvancedLoggingJSON": {},
        "AdvancedLoggingConfig": ""
    },
    "NotificationLogSettings": {
        "EnableConsole": true,
        "ConsoleLevel": "DEBUG",
        "ConsoleJson": true,
        "EnableColor": false,
        "EnableFile": true,
        "FileLevel": "INFO",
        "FileJson": true,
        "FileLocation": "",
        "AdvancedLoggingJSON": {},
        "AdvancedLoggingConfig": ""
    },
    "PasswordSettings": {
        "MinimumLength": 8,
        "Lowercase": true,
        "Number": true,
        "Uppercase": true,
        "Symbol": true,
        "EnableForgotLink": true
    },
    "FileSettings": {
        "EnableFileAttachments": true,
        "EnableMobileUpload": true,
        "EnableMobileDownload": true,
        "MaxFileSize": 52428800,
        "MaxImageResolution": 33177600,
        "MaxImageDecoderConcurrency": -1,
        "DriverName": "local",
        "Directory": "/mattermost/data/",
        "EnablePublicLink": false,
        "ExtractContent": true,
        "ArchiveRecursion": false,
        "PublicLinkSalt": "********************************",
        "InitialFont": "luximbi.ttf",
        "AmazonS3AccessKeyId": "",
        "AmazonS3SecretAccessKey": "",
        "AmazonS3Bucket": "",
        "AmazonS3PathPrefix": "",
        "AmazonS3Region": "us-east-1",
        "AmazonS3Endpoint": "s3.amazonaws.com",
        "AmazonS3SSL": true,
        "AmazonS3SignV2": false,
        "AmazonS3SSE": false,
        "AmazonS3Trace": false,
        "AmazonS3RequestTimeoutMilliseconds": 30000,
        "DedicatedExportStore": false,
        "ExportDriverName": "local",
        "ExportDirectory": "./data/",
        "ExportAmazonS3AccessKeyId": "",
        "ExportAmazonS3SecretAccessKey": "",
        "ExportAmazonS3Bucket": "",
        "ExportAmazonS3PathPrefix": "",
        "ExportAmazonS3Region": "",
        "ExportAmazonS3Endpoint": "s3.amazonaws.com",
        "ExportAmazonS3SSL": true,
        "ExportAmazonS3SignV2": false,
        "ExportAmazonS3SSE": false,
        "ExportAmazonS3Trace": false,
        "ExportAmazonS3RequestTimeoutMilliseconds": 30000,
        "ExportAmazonS3PresignExpiresSeconds": 21600
    },
    "EmailSettings": {
        "EnableSignUpWithEmail": true,
        "EnableSignInWithEmail": true,
        "EnableSignInWithUsername": true,
        "SendEmailNotifications": true,
        "UseChannelInEmailNotifications": false,
        "RequireEmailVerification": true,
        "FeedbackName": "No-Reply",
        "FeedbackEmail": "no-reply@xxxxxxxxxx.com",
        "ReplyToAddress": "no-reply@example.com",
        "FeedbackOrganization": "",
        "EnableSMTPAuth": true,
        "SMTPUsername": "no-reply@xxxxxxxxxx.com",
        "SMTPPassword": "********************************",
        "SMTPServer": "smtp.office365.com",
        "SMTPPort": "587",
        "SMTPServerTimeout": 10,
        "ConnectionSecurity": "STARTTLS",
        "SendPushNotifications": true,
        "PushNotificationServer": "https://push-test.mattermost.com",
        "PushNotificationContents": "generic",
        "PushNotificationBuffer": 1000,
        "EnableEmailBatching": true,
        "EmailBatchingBufferSize": 256,
        "EmailBatchingInterval": 30,
        "EnablePreviewModeBanner": false,
        "SkipServerCertificateVerification": true,
        "EmailNotificationContentsType": "full",
        "LoginButtonColor": "#0000",
        "LoginButtonBorderColor": "#2389D7",
        "LoginButtonTextColor": "#2389D7"
    },
    "RateLimitSettings": {
        "Enable": false,
        "PerSec": 10,
        "MaxBurst": 100,
        "MemoryStoreSize": 10000,
        "VaryByRemoteAddr": true,
        "VaryByUser": false,
        "VaryByHeader": ""
    },
    "PrivacySettings": {
        "ShowEmailAddress": true,
        "ShowFullName": true
    },
    "SupportSettings": {
        "TermsOfServiceLink": "https://about.mattermost.com/default-terms/",
        "PrivacyPolicyLink": "https://about.mattermost.com/default-privacy-policy/",
        "AboutLink": "https://about.mattermost.com/default-about/",
        "HelpLink": "https://about.mattermost.com/default-help/",
        "ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/",
        "ForgotPasswordLink": "",
        "SupportEmail": "feedback@mattermost.com",
        "CustomTermsOfServiceEnabled": false,
        "CustomTermsOfServiceReAcceptancePeriod": 365,
        "EnableAskCommunityLink": false
    },
    "AnnouncementSettings": {
        "EnableBanner": false,
        "BannerText": "",
        "BannerColor": "#f2a93b",
        "BannerTextColor": "#333333",
        "AllowBannerDismissal": true,
        "AdminNoticesEnabled": true,
        "UserNoticesEnabled": false,
        "NoticesURL": "https://notices.mattermost.com/",
        "NoticesFetchFrequency": 3600,
        "NoticesSkipCache": false
    },
    "ThemeSettings": {
        "EnableThemeSelection": true,
        "DefaultTheme": "default",
        "AllowCustomThemes": true,
        "AllowedThemes": []
    },
    "GitLabSettings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "",
        "AuthEndpoint": "",
        "TokenEndpoint": "",
        "UserAPIEndpoint": "",
        "DiscoveryEndpoint": "",
        "ButtonText": "",
        "ButtonColor": ""
    },
    "GoogleSettings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "profile email",
        "AuthEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
        "TokenEndpoint": "https://www.googleapis.com/oauth2/v4/token",
        "UserAPIEndpoint": "https://www.googleapis.com/plus/v1/people/me",
        "DiscoveryEndpoint": "",
        "ButtonText": "",
        "ButtonColor": ""
    },
    "Office365Settings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "User.Read",
        "AuthEndpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
        "TokenEndpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
        "UserAPIEndpoint": "https://graph.microsoft.com/v1.0/me",
        "DiscoveryEndpoint": "",
        "DirectoryId": ""
    },
    "OpenIdSettings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "profile openid email",
        "AuthEndpoint": "",
        "TokenEndpoint": "",
        "UserAPIEndpoint": "",
        "DiscoveryEndpoint": "",
        "ButtonText": "",
        "ButtonColor": "#145DBF"
    },
    "LdapSettings": {
        "Enable": false,
        "EnableSync": false,
        "LdapServer": "",
        "LdapPort": 389,
        "ConnectionSecurity": "",
        "BaseDN": "",
        "BindUsername": "",
        "BindPassword": "",
        "UserFilter": "",
        "GroupFilter": "",
        "GuestFilter": "",
        "EnableAdminFilter": false,
        "AdminFilter": "",
        "GroupDisplayNameAttribute": "",
        "GroupIdAttribute": "",
        "FirstNameAttribute": "",
        "LastNameAttribute": "",
        "EmailAttribute": "",
        "UsernameAttribute": "",
        "NicknameAttribute": "",
        "IdAttribute": "",
        "PositionAttribute": "",
        "LoginIdAttribute": "",
        "PictureAttribute": "",
        "SyncIntervalMinutes": 60,
        "SkipCertificateVerification": false,
        "PublicCertificateFile": "",
        "PrivateKeyFile": "",
        "QueryTimeout": 60,
        "MaxPageSize": 0,
        "LoginFieldName": "",
        "LoginButtonColor": "#0000",
        "LoginButtonBorderColor": "#2389D7",
        "LoginButtonTextColor": "#2389D7",
        "Trace": false
    },
    "ComplianceSettings": {
        "Enable": false,
        "Directory": "./data/",
        "EnableDaily": false,
        "BatchSize": 30000
    },
    "LocalizationSettings": {
        "DefaultServerLocale": "en",
        "DefaultClientLocale": "es",
        "AvailableLocales": "en,es"
    },
    "SamlSettings": {
        "Enable": false,
        "EnableSyncWithLdap": false,
        "EnableSyncWithLdapIncludeAuth": false,
        "IgnoreGuestsLdapSync": false,
        "Verify": false,
        "Encrypt": false,
        "SignRequest": false,
        "IdpURL": "",
        "IdpDescriptorURL": "",
        "IdpMetadataURL": "",
        "ServiceProviderIdentifier": "",
        "AssertionConsumerServiceURL": "",
        "SignatureAlgorithm": "RSAwithSHA1",
        "CanonicalAlgorithm": "Canonical1.0",
        "ScopingIDPProviderId": "",
        "ScopingIDPName": "",
        "IdpCertificateFile": "",
        "PublicCertificateFile": "",
        "PrivateKeyFile": "",
        "IdAttribute": "",
        "GuestAttribute": "",
        "EnableAdminAttribute": false,
        "AdminAttribute": "",
        "FirstNameAttribute": "",
        "LastNameAttribute": "",
        "EmailAttribute": "",
        "UsernameAttribute": "",
        "NicknameAttribute": "",
        "LocaleAttribute": "",
        "PositionAttribute": "",
        "LoginButtonText": "With SAML",
        "LoginButtonColor": "#34a28b",
        "LoginButtonBorderColor": "#2389D7",
        "LoginButtonTextColor": "#ffffff"
    },
    "NativeAppSettings": {
        "AppCustomURLSchemes": [
            "mmauth://",
            "mmauthbeta://"
        ],
        "AppDownloadLink": "https://about.mattermost.com/downloads/",
        "AndroidAppDownloadLink": "https://about.mattermost.com/mattermost-android-app/",
        "IosAppDownloadLink": "https://about.mattermost.com/mattermost-ios-app/"
    },
    "ClusterSettings": {
        "Enable": false,
        "ClusterName": "",
        "OverrideHostname": "",
        "NetworkInterface": "",
        "BindAddress": "",
        "AdvertiseAddress": "",
        "UseIPAddress": true,
        "EnableGossipCompression": true,
        "EnableExperimentalGossipEncryption": false,
        "ReadOnlyConfig": true,
        "GossipPort": 8074,
        "StreamingPort": 8075,
        "MaxIdleConns": 100,
        "MaxIdleConnsPerHost": 128,
        "IdleConnTimeoutMilliseconds": 90000
    },
    "MetricsSettings": {
        "Enable": false,
        "BlockProfileRate": 0,
        "ListenAddress": ":8067"
    },
    "ExperimentalSettings": {
        "ClientSideCertEnable": false,
        "ClientSideCertCheck": "secondary",
        "LinkMetadataTimeoutMilliseconds": 5000,
        "RestrictSystemAdmin": false,
        "UseNewSAMLLibrary": false,
        "EnableSharedChannels": false,
        "EnableRemoteClusterService": false,
        "DisableAppBar": false,
        "DisableRefetchingOnBrowserFocus": false,
        "DelayChannelAutocomplete": false
    },
    "AnalyticsSettings": {
        "MaxUsersForStatistics": 2500
    },
    "ElasticsearchSettings": {
        "ConnectionURL": "",
        "Username": "",
        "Password": "********************************",
        "EnableIndexing": false,
        "EnableSearching": false,
        "EnableAutocomplete": false,
        "Sniff": true,
        "PostIndexReplicas": 1,
        "PostIndexShards": 1,
        "ChannelIndexReplicas": 1,
        "ChannelIndexShards": 1,
        "UserIndexReplicas": 1,
        "UserIndexShards": 1,
        "AggregatePostsAfterDays": 365,
        "PostsAggregatorJobStartTime": "03:00",
        "IndexPrefix": "",
        "LiveIndexingBatchSize": 1,
        "BulkIndexingTimeWindowSeconds": 3600,
        "BatchSize": 10000,
        "RequestTimeoutSeconds": 30,
        "SkipTLSVerification": false,
        "CA": "",
        "ClientCert": "",
        "ClientKey": "",
        "Trace": "",
        "IgnoredPurgeIndexes": ""
    },
    "BleveSettings": {
        "IndexDir": "/mattermost/bleve-indexes",
        "EnableIndexing": true,
        "EnableSearching": true,
        "EnableAutocomplete": true,
        "BulkIndexingTimeWindowSeconds": 3600,
        "BatchSize": 10000
    },
    "DataRetentionSettings": {
        "EnableMessageDeletion": false,
        "EnableFileDeletion": false,
        "EnableBoardsDeletion": false,
        "MessageRetentionDays": 365,
        "MessageRetentionHours": 0,
        "FileRetentionDays": 365,
        "FileRetentionHours": 0,
        "BoardsRetentionDays": 365,
        "DeletionJobStartTime": "02:00",
        "BatchSize": 3000,
        "TimeBetweenBatchesMilliseconds": 100,
        "RetentionIdsBatchSize": 100
    },
    "MessageExportSettings": {
        "EnableExport": false,
        "ExportFormat": "actiance",
        "DailyRunTime": "01:00",
        "ExportFromTimestamp": 0,
        "BatchSize": 10000,
        "DownloadExportResults": false,
        "GlobalRelaySettings": {
            "CustomerType": "A9",
            "SMTPUsername": "",
            "SMTPPassword": "",
            "EmailAddress": "",
            "SMTPServerTimeout": 1800,
            "CustomSMTPServerName": "",
            "CustomSMTPPort": "25"
        }
    },
    "JobSettings": {
        "RunJobs": true,
        "RunScheduler": true,
        "CleanupJobsThresholdDays": -1,
        "CleanupConfigThresholdDays": -1
    },
    "ProductSettings": {},
    "PluginSettings": {
        "Enable": true,
        "EnableUploads": true,
        "AllowInsecureDownloadURL": false,
        "EnableHealthCheck": true,
        "Directory": "./plugins",
        "ClientDirectory": "./client/plugins",
        "Plugins": {
            "com.github.matterpoll.matterpoll": {
                "experimentalui": true,
                "trigger": "poll"
            },
            "com.github.moussetc.mattermost.plugin.giphy": {
                "apikey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                "disablepostingwithoutpreview": true,
                "displaymode": "embedded",
                "language (giphy\u0026tenor only)": "en",
                "provider": "giphy",
                "rating": "r",
                "rendition": "fixed_height_small",
                "renditiongfycat": "gif100px",
                "renditiontenor": "mediumgif"
            },
            "com.mattermost.badges": {
                "badgesadmin": null
            },
            "com.mattermost.calls": {
                "allowscreensharing": false,
                "defaultenabled": true,
                "enablerecordings": false,
                "icehostoverride": "",
                "iceserversconfigs": "[{\"urls\":[\"stun:stun.global.calls.mattermost.com:3478\"]}]",
                "jobserviceurl": null,
                "maxcallparticipants": 0,
                "maxrecordingduration": 60,
                "rtcdserviceurl": null,
                "serversideturn": false,
                "turncredentialsexpirationminutes": 1440,
                "turnstaticauthsecret": "",
                "udpserverport": 8443
            },
            "com.mattermost.mscalendar": {
                "adminloglevel": "none",
                "adminlogverbose": false,
                "adminuserids": null,
                "oauth2authority": "239d6fda-2f7a-4f86-9c5e-f7ce82949d6d",
                "oauth2clientid": "fc59fbf4-fa60-4f48-bb72-712d01f1b871",
                "oauth2clientsecret": "csl8Q~L3O3byFkXS_9gFv4npiPL56I2BbopG5bbm"
            },
            "com.mattermost.msteamsmeetings": {
                "encryptionkey": "HOulGjAFlYdV+e4LQh1JwOBRZ/BhkFE1",
                "oauth2authority": "239d6fda-2f7a-4f86-9c5e-f7ce82949d6d",
                "oauth2clientid": "f2a3d0a9-1e15-47e1-b74b-07b353748007",
                "oauth2clientsecret": "AUk8Q~bKJayaLxizNGwINp6vtJwbBhiozsfHlbck"
            },
            "com.mattermost.nps": {
                "enablesurvey": false
            },
            "com.mattermost.plugin-todo": {
                "hide_team_sidebar": null
            },
            "com.mattermost.webex": {
                "sitehost": ""
            },
            "focalboard": {
                "enablepublicsharedboards": false
            },
            "mattermost-autolink": {
                "enableadmincommand": true,
                "enableonupdate": true,
                "links": [{
                        "DisableNonWordPrefix": false,
                        "DisableNonWordSuffix": false,
                        "Disabled": false,
                        "Name": "",
                        "Pattern": "",
                        "ProcessBotPosts": false,
                        "Scope": null,
                        "Template": "",
                        "WordMatch": false
                    }, {
                        "DisableNonWordPrefix": false,
                        "DisableNonWordSuffix": false,
                        "Disabled": false,
                        "Name": "RedmineIssue",
                        "Pattern": "ri#(?P\u003cissueid\u003e\\d{3,6})",
                        "ProcessBotPosts": false,
                        "Scope": null,
                        "Template": "https://redmine.xxxxxxxxxx.com/issues/${issueid}",
                        "WordMatch": false
                    }, {
                        "DisableNonWordPrefix": false,
                        "DisableNonWordSuffix": false,
                        "Disabled": false,
                        "Name": "RedmineIssuev2",
                        "Pattern": "###(?P\u003cissueid\u003e\\d{3,6})",
                        "ProcessBotPosts": true,
                        "Scope": null,
                        "Template": "[#${issueid}](https://redmine.xxxxxxxxxx.com/issues/${issueid})",
                        "WordMatch": false
                    }
                ],
                "pluginadmins": "ed86pdzjnf8auggenda35i387e,j5tuzd8kjigyt8xwytu9fc44ha"
            },
            "mattermost-profanity-filter": {
                "badwordslist": "xxxxxxxxxx",
                "censorcharacter": ":face_with_symbols_on_mouth:",
                "rejectposts": false,
                "warningmessage": "Your post has been rejected by the Profanity Filter, because the following word is not allowed: `%s`."
            },
            "open-ai": {
                "openaiapibaseurl": "https://api.openai.com/v1",
                "openaiapikey": "sk-xxxxxxxxxx",
                "openaiorganizationid": "org-xxxxxxxxxx"
            },
            "playbooks": {
                "BotUserID": "s5hg7oznbfbd8kodykcpf171gy"
            },
            "standup-raven": {
                "enableerrorreporting": false,
                "permissionschemaenabled": null,
                "timezone": "Europe/Madrid"
            }
        },
        "PluginStates": {
            "com.github.matterpoll.matterpoll": {
                "Enable": true
            },
            "com.github.moussetc.mattermost.plugin.diceroller": {
                "Enable": true
            },
            "com.github.moussetc.mattermost.plugin.giphy": {
                "Enable": true
            },
            "com.github.scottleedavis.mattermost-plugin-remind": {
                "Enable": true
            },
            "com.mattermost.apps": {
                "Enable": true
            },
            "com.mattermost.badges": {
                "Enable": false
            },
            "com.mattermost.calls": {
                "Enable": false
            },
            "com.mattermost.draw-plugin": {
                "Enable": false
            },
            "com.mattermost.mscalendar": {
                "Enable": true
            },
            "com.mattermost.msteamsmeetings": {
                "Enable": true
            },
            "com.mattermost.nps": {
                "Enable": false
            },
            "com.mattermost.plugin-channel-export": {
                "Enable": false
            },
            "com.mattermost.plugin-incident-management": {
                "Enable": false
            },
            "com.mattermost.plugin-todo": {
                "Enable": true
            },
            "com.mattermost.webex": {
                "Enable": false
            },
            "focalboard": {
                "Enable": true
            },
            "mattermost-autolink": {
                "Enable": true
            },
            "mattermost-profanity-filter": {
                "Enable": true
            },
            "memes": {
                "Enable": true
            },
            "open-ai": {
                "Enable": false
            },
            "playbooks": {
                "Enable": true
            },
            "standup-raven": {
                "Enable": true
            }
        },
        "EnableMarketplace": true,
        "EnableRemoteMarketplace": true,
        "AutomaticPrepackagedPlugins": true,
        "RequirePluginSignature": false,
        "MarketplaceURL": "https://api.integrations.mattermost.com",
        "SignaturePublicKeyFiles": [],
        "ChimeraOAuthProxyURL": ""
    },
    "DisplaySettings": {
        "CustomURLSchemes": [],
        "MaxMarkdownNodes": 0
    },
    "GuestAccountsSettings": {
        "Enable": false,
        "HideTags": false,
        "AllowEmailAccounts": true,
        "EnforceMultifactorAuthentication": false,
        "RestrictCreationToDomains": ""
    },
    "ImageProxySettings": {
        "Enable": true,
        "ImageProxyType": "local",
        "RemoteImageProxyURL": "",
        "RemoteImageProxyOptions": ""
    },
    "CloudSettings": {
        "CWSURL": "https://customers.mattermost.com",
        "CWSAPIURL": "https://portal.internal.prod.cloud.mattermost.com",
        "CWSMock": false
    },
    "FeatureFlags": {
        "TestFeature": "off",
        "TestBoolFeature": false,
        "EnableRemoteClusterService": false,
        "AppsEnabled": true,
        "PermalinkPreviews": false,
        "CallsEnabled": true,
        "NormalizeLdapDNs": false,
        "PostPriority": false,
        "WysiwygEditor": false,
        "OnboardingTourTips": true,
        "DeprecateCloudFree": false,
        "CloudReverseTrial": false,
        "EnableExportDirectDownload": false,
        "MoveThreadsEnabled": false,
        "StreamlinedMarketplace": true,
        "CloudIPFiltering": false,
        "ConsumePostHook": false,
        "CloudAnnualRenewals": false,
        "OutgoingOAuthConnections": false
    },
    "ImportSettings": {
        "Directory": "./import",
        "RetentionDays": 30
    },
    "ExportSettings": {
        "Directory": "./export",
        "RetentionDays": 30
    },
    "WranglerSettings": {
        "PermittedWranglerRoles": [],
        "AllowedEmailDomain": [],
        "MoveThreadMaxCount": 100,
        "MoveThreadToAnotherTeamEnable": false,
        "MoveThreadFromPrivateChannelEnable": false,
        "MoveThreadFromDirectMessageChannelEnable": false,
        "MoveThreadFromGroupMessageChannelEnable": false
    }
}

Thanks for sharing your Mattermost configuration. I don’t see anything that would point to a configuration issue.

Could you please set LogSettings.FileLevel to DEBUG and trigger a post action? That should trigger an error message in the logs. Could you please share that message?

logs generated by slash command that triggers interactive message

HTTP request
POST / HTTP/1.1
Host: xxxxxxxxxx:xxxx
User-Agent: Mattermost-Bot/1.1
Content-Length: 565
Accept: application/json
Authorization: Token t6km7kxob78g7nkqmi85ps7pse
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

channel_id=qdxyjboyz3brfm4ybywxynodke&channel_name=mychannel&command=%2Fmycommand&response_url=http%3A%2F%2Fxxx.xxx.xxx.xxx%3A8080%2Fhooks%2Fcommands%2Fdanerbcx8pgg7egioc7gq7x3he&team_domain=mydomain&team_id=76a7w1mu638xub4ypd41xiqx5w&text=testmatter&token=t6km7kxob78g7nkqmi85ps7pse&trigger_id=MW84eGc2MTRqaXIxdXgzYjN1aHk3cWh1a3c6aWJibngzamhldGQ4NW1kamltc2lnaGJmdGE6MTcxMDgzNDIzOTMyNDpNRVFDSUFJUzdLczFyMytGZjE3Zks3RmlJR3IwWjlPVVJMaHZFVW1VQ09ZZ2J3QzBBaUJKNFg2YUFmR2NVM2UrMmtrc0VsSHp2b2U1VFUwQUxVUzROdGViRFlyVkpnPT0%3D&user_id=ibbnx3jhetd85mdjimsighbfta&user_name=ealonsoHTTP/1.1 200 OK
Server: Werkzeug/3.0.1 Python/3.8.10
Date: Tue, 19 Mar 2024 07:43:59 GMT
Content-Type: application/json
Content-Length: 777
Connection: close

{"attachments":[{"actions":[{"integration":{"context":{"action":"do_confirm","duuid":"435b14ec-37f1-4d13-853c-193378b3d376"},"url":"http://xxxxxxxxxx:xxxx/confirm?duuid=435b14ec-37f1-4d13-853c-193378b3d376&action=confirm"},"name":"confirm","style":"danger"},{"integration":{"context":{"action":"default","duuid":"435b14ec-37f1-4d13-853c-193378b3d376"},"url":"http://xxxxxxxxxx:xxxx/confirm?duuid=435b14ec-37f1-4d13-853c-193378b3d376&action=cancel"},"name":"cancel","style":"danger"}],"pretext":"some text.","text":"more text"}],"response_type":"in_channel"}
mattermost.log
{
    "timestamp": "2024-03-19 08:43:59.327 +01:00",
    "level": "debug",
    "msg": "Executing command",
    "caller": "app/command.go:446",
    "path": "/api/v4/commands/execute",
    "request_id": "jcok8m4s1p8z8ggodayjgagi1c",
    "ip_addr": "xxx.xxx.xxx.xxx",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "method": "POST",
    "command": "despliegue",
    "user_id": "ibbnx3jhetd85mdjimsighbfta"
}{
    "timestamp": "2024-03-19 08:43:59.339 +01:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:172",
    "method": "POST",
    "url": "/api/v4/commands/execute",
    "request_id": "jcok8m4s1p8z8ggodayjgagi1c",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "status_code": "200"
}{
    "timestamp": "2024-03-19 08:43:59.376 +01:00",
    "level": "debug",
    "msg": "Failed to upgrade websocket connection.",
    "caller": "web/context.go:111",
    "path": "/api/v4/websocket",
    "request_id": "r3b8yn567jg4frji6etkji7cxo",
    "ip_addr": "xxx.xxx.xxx.xxx",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "method": "GET",
    "err_where": "connect",
    "http_code": 400,
    "error": "connect: Failed to upgrade websocket connection., websocket: request origin not allowed by Upgrader.CheckOrigin"
}{
    "timestamp": "2024-03-19 08:43:59.376 +01:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:172",
    "method": "GET",
    "url": "/api/v4/websocket",
    "request_id": "r3b8yn567jg4frji6etkji7cxo",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "status_code": "400"
}{
    "timestamp": "2024-03-19 08:43:59.413 +01:00",
    "level": "debug",
    "msg": "CSRF Header check failed for request - Please upgrade your web application or custom app to set a CSRF Header",
    "caller": "web/handlers.go:498",
    "path": "/api/v4/users/me/channels/qdxyjboyz3brfm4ybywxynodke/drafts",
    "ip": "xxx.xxx.xxx.xxx:49671",
    "session_id": "k6ijd7sctpn15djy65h51c43ch",
    "user_id": "ibbnx3jhetd85mdjimsighbfta"
}{
    "timestamp": "2024-03-19 08:43:59.415 +01:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:172",
    "method": "DELETE",
    "url": "/api/v4/users/me/channels/qdxyjboyz3brfm4ybywxynodke/drafts",
    "request_id": "59pg7x48hi8ptyas45ras5hf3w",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "status_code": "200"
}

logs generated by action button

HTTP request
POST /confirm?duuid=435b14ec-37f1-4d13-853c-193378b3d376&action=cancel HTTP/1.1
Host: xxxxxxxxxx:xxxx
User-Agent: Mattermost-Bot/1.1
Content-Length: 571
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip

{"user_id":"ibbnx3jhetd85mdjimsighbfta","user_name":"ealonso","channel_id":"qdxyjboyz3brfm4ybywxynodke","channel_name":"mychannel","team_id":"76a7w1mu638xub4ypd41xiqx5w","team_domain":"mydomain","post_id":"5wqswu9yht8njg3rqw3sm5oh6w","trigger_id":"NnE3YjlwNDRvYjhoYnhjc3N6Y3d3dGtuY2U6aWJibngzamhldGQ4NW1kamltc2lnaGJmdGE6MTcxMDgzNDI2MDY0MTpNRVlDSVFDU2VIKzhoRmtIS3RybG4vUTZ0ZWFuK0UrdUVlbVpQZ0lkQ0c5eDhSRHVoQUloQUlacjJJUGo1OWtQQmVFVEgrclRzQkxlN3JITEpmbFF3Q0hGZjFoSFR2c04=","type":"","data_source":"","context":{"action":"default","duuid":"435b14ec-37f1-4d13-853c-193378b3d376"}}HTTP/1.1 200 OK
Server: Werkzeug/3.0.1 Python/3.8.10
Date: Tue, 19 Mar 2024 07:44:20 GMT
Content-Type: application/json
Content-Length: 93
Connection: close

{"update":{"message":"Cancelada solicitud inciada por ealonso para testmatter.","props":{}}}
mattermost log
{
    "timestamp": "2024-03-19 08:44:20.637 +01:00",
    "level": "debug",
    "msg": "CSRF Header check failed for request - Please upgrade your web application or custom app to set a CSRF Header",
    "caller": "web/handlers.go:498",
    "path": "/api/v4/posts/5wqswu9yht8njg3rqw3sm5oh6w/actions/jnxey5rjc7fzbyt18g44qss98o",
    "ip": "xxx.xxx.xxx.xxx:49730",
    "session_id": "k6ijd7sctpn15djy65h51c43ch",
    "user_id": "ibbnx3jhetd85mdjimsighbfta"
}{
    "timestamp": "2024-03-19 08:44:20.648 +01:00",
    "level": "debug",
    "msg": "Action integration error.",
    "caller": "web/context.go:111",
    "path": "/api/v4/posts/5wqswu9yht8njg3rqw3sm5oh6w/actions/jnxey5rjc7fzbyt18g44qss98o",
    "request_id": "ezi1m8m7y7d19r7fupxy5gf3gr",
    "ip_addr": "xxx.xxx.xxx.xxx",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "method": "POST",
    "err_where": "DoPostActionWithCookie",
    "http_code": 400,
    "error": "DoPostActionWithCookie: Action integration error., context canceled"
}{
    "timestamp": "2024-03-19 08:44:20.648 +01:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:172",
    "method": "POST",
    "url": "/api/v4/posts/5wqswu9yht8njg3rqw3sm5oh6w/actions/jnxey5rjc7fzbyt18g44qss98o",
    "request_id": "ezi1m8m7y7d19r7fupxy5gf3gr",
    "user_id": "ibbnx3jhetd85mdjimsighbfta",
    "status_code": "400"
}

Thanks for sharing the logs. I’ve submitted a fix, which is now in review.

Hi @ealonso,

Would you be open to testing the fix by e.g. updating your Mattermost Server or by pointing your integration to on of the Mattermost Servers?

Tested on

docker container mattermost/mattermost-team-edition:9.7.0-rc2 - 5790e96dcf6f
Version:        9.7.0
BuiltDate:      dev
CommitDate:     2024-03-22T14:00:34Z
GitCommit:      eee90ce848d293be87189771f14b7e50ba4fc1fc
GitTreeState:   dirty
GoVersion:      go1.20.7
Compiler:       gc
Platform:       amd64/linux

Error log:

{
    "timestamp": "2024-04-01 08:36:47.551 +02:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:187",
    "method": "POST",
    "url": "/api/v4/channels/members/me/view",
    "request_id": "6m94dk1rt7n57q6w6on8d17uph",
    "user_id": "tjwcpohmcp8furt5wwk4jtd9ja",
    "status_code": "200"
}{
    "timestamp": "2024-04-01 08:36:47.642 +02:00",
    "level": "debug",
    "msg": "Action integration error.",
    "caller": "web/context.go:111",
    "path": "/api/v4/posts/smif9r36yift88n4i1uh8jt3iy/actions/arbycz7jhi8k5jpm9wxofgar5w",
    "request_id": "rh5hduxkm7biuqrqaqcbu1ex9o",
    "ip_addr": "xxx.xxx.xxx.xxx",
    "user_id": "tjwcpohmcp8furt5wwk4jtd9ja",
    "method": "POST",
    "err_where": "DoPostActionWithCookie",
    "http_code": 400,
    "error": "DoPostActionWithCookie: Action integration error., context canceled"
}{
    "timestamp": "2024-04-01 08:36:47.642 +02:00",
    "level": "debug",
    "msg": "Received HTTP request",
    "caller": "web/handlers.go:187",
    "method": "POST",
    "url": "/api/v4/posts/smif9r36yift88n4i1uh8jt3iy/actions/arbycz7jhi8k5jpm9wxofgar5w",
    "request_id": "rh5hduxkm7biuqrqaqcbu1ex9o",
    "user_id": "tjwcpohmcp8furt5wwk4jtd9ja",
    "status_code": "400"
}

@ealonso Can you please test with the following image? docker.io/mattermostdevelopment/mm-ee-test:63588a6

@Hanzei Yes. It works!!

Image docker.io/mattermostdevelopment/mm-ee-test:63588a6 works as expected

1 Like

Awesome, I’m glad we were able to resolve the issue.

For anyone who is following this thread: The fix got backported and will be part of the next v9.5 patch version, which is supposedly v9.5.3.

1 Like