Skip to content

Confluence Cloud webhook fails: page.id sent as string but plugin expects int #179

Description

@bearcubsvet

Hi,

I am having trouble getting the Confluence plugin for Mattermost to work - unable to parse JSON event.

Environment
- Mattermost Server: 10.0.0 (dev build)
- Plugin: com.mattermost.confluence (latest release)
- Confluence Cloud setup

See logs below

{"timestamp":"2025-08-19 14:00:54.582 Z","level":"info","msg":"Received Confluence cloud event.","caller":"app/plugin_api.go:1008","plugin_id":"com.mattermost.confluence"}
{"timestamp":"2025-08-19 14:00:54.583 Z","level":"error","msg":"Unable to decode JSON for ConfluenceServerEvent.","caller":"app/plugin_api.go:1011","plugin_id":"com.mattermost.confluence","Error":"json: cannot unmarshal string into Go struct field Page.page.id of type int"}
{"timestamp":"2025-08-19 14:00:54.584 Z","level":"error","msg":"Error occurred while unmarshalling Confluence cloud webhook payload","caller":"app/plugin_api.go:1011","plugin_id":"com.mattermost.confluence","error":"json: cannot unmarshal string into Go struct field Page.page.id of type int"}
{"timestamp":"2025-08-19 14:01:36.357 Z","level":"info","msg":"Received Confluence cloud event.","caller":"app/plugin_api.go:1008","plugin_id":"com.mattermost.confluence"}
{"timestamp":"2025-08-19 14:01:36.357 Z","level":"error","msg":"Unable to decode JSON for ConfluenceServerEvent.","caller":"app/plugin_api.go:1011","plugin_id":"com.mattermost.confluence","Error":"json: cannot unmarshal string into Go struct field Page.page.id of type int"}
{"timestamp":"2025-08-19 14:01:36.358 Z","level":"error","msg":"Error occurred while unmarshalling Confluence cloud webhook payload","caller":"app/plugin_api.go:1011","plugin_id":"com.mattermost.confluence","error":"json: cannot unmarshal string into Go struct field Page.page.id of type int"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions