Error: "Extension context failed to validate against the schema" – Unexpected "experience" property

I’m encountering the following error in my Forge app:

index.jsx:43 Uncaught (in promise) Error: Extension context failed to validate against the schema: object instance has properties which are not allowed by the schema: [“experience”]

My app was working fine for about a week, and I haven’t updated a single line of code. However, today this frustrating error appeared out of nowhere.

I have no idea why this is happening. Has anyone experienced this before? Any guidance would be greatly appreciated.

Thanks in advance!

const context = useProductContext();
const [issueKey, setIssueKey] = useState(null);

useEffect(() => {
    if (context) {
      const _issueKey = context?.extension?.issue?.key;
      setIssueKey(_issueKey);
    }
}
1 Like

Thanks for posing this question! We also face this and thought it’s related to our app, but it looks it’s related to the Forge context?

e.g. /rest/internal/2/forge/context/token

returns

{
    "errorMessages": [
        "Extension context failed to validate against the schema: object instance has properties which are not allowed by the schema: [\"experience\"]"
    ],
    "errors": {}
}

@ibuchanan @AdamMoore Could anyone at Atlassian have a look at this?

2 Likes

This looks like an incident that requires to be reported to Atlassian.

1 Like

Same thing is happening for me. Didn’t make a change to the app and since today this error is occuring.

There’s an official incident at Atlassian status: Atlassian Developer Status - Forge Apps that call invoke API on issue view fail with error

3 Likes

The issue should be fixed (at least for me) and the incident has be closed!