Error with executeQuery and creating a mutation

I have an app where I am attempting to invoke an executeQuery that creates a mutation of a composite that I have compiled/deployed. I am getting the following error when I attempt to run the executeQuery:

Capability is expired, cannot create a valid signature

I have confirmed that my connection status is “Connected”. Here is the API call that I am attempting to make:

const CREATE_CLAIM = `mutation (
    $claim: String!
    $by: String!
    $credit: Int!
    $round: String!
  ){
    createClaim(
      input: {
        content: {
          claim: $claim
          by: $by
          credit: $credit
          round: $round
        }
      }
    ){
      document {
        id
        claim
        by
        credit
        signed_by {
          id
        }
        round
      }
    }
  }`

const variables = {"claim":"Task 2","by":"<a wallet>","credit":10,"round":"february"}

const composeDBResult = await compose.executeQuery(
     CREATE_CLAIM,
     variables
 );

I’ve gone through the docs and can’t find any specific reference to that error.

This is because your did-session has expired.
Have a look at the DID Session documentation for how to create a new session!

Thank you so much…that was it (of course :blush: . I have the code already to refresh the session, I just wasn’t looking for that specific error. I appreciate the help.