Back to all

JWT token provided is invalid

This was working fine for me a couple of days ago:

{
  "type": "Http",
  "inputs": {
    "uri": "https://api.maximizer.com/octopus/Read",
    "method": "POST",
    "headers": {
      "Content-Type": "application/json",
      "Accept": "application/json",
      "Authorization": "Bearer @{variables('PAT')}"
    },
    "body": {
      "AbEntry": {
        "Scope": {
          "Fields": {
            "Key": 1
          }
        },
        "Criteria": {
          "SearchQuery": {
            "Udf/$NAME(Search Formulas\\All Quotes and HQ's)": {
              "$LIKE": "%240399%"
            }
          },
          "Top": 1
        }
      },
      "Compatibility": {
        "AbEntryKey": "2.0"
      }
    }
  },
  "runAfter": {
    "PAT": [
      "Succeeded"
    ]
  },
  "runtimeConfiguration": {
    "contentTransfer": {
      "transferMode": "Chunked"
    }
  }
}

Now I am getting a 401 Unauthorized error that says JWT token provided is invalid

It doesn't make sense. My PAT has not expired but I made a new one anyway and it still the same error.