Hello, I have a token eg ```"eyJhbGciOiJIUzI1NiJ9....
# general
t
Hello, I have a token eg
Copy code
"eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJhdWQiOiJodHRwczov" +
    "L2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImV4cCI6MTY0NjMxNjU5NywiaWF0Ij" +
    "oxNjQ2MzEyOTk2LCJzdWIiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJ1aWQiOiI0MTEwMDAzNyJ9.MLpkCQI5bOSmdJuneQdwChEYvXhkaig" +
    "d4ouPOn5f2Rw"
that needs to match my jwt regex of
private val jwtRegex = "^[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*\$"
most of the time in CI this is fine during pactPublish, but occasionally I get this annoying json parser error like below...
Copy code
/usr/lib/ruby/gems/3.0.0/gems/json-2.6.2/lib/json/common.rb:216:in `parse': 859: unexpected token at 'nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImV4cCI6MTY0NjMxNjU5NywiaWF0IjoxNjQ2MzEyOTk2LCJzdWIiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJ1aWQiOiI0MTEwMDAzNyJ9.MLpkCQI5bOSmdJuneQdwChEYvXhkaigd4ouPOn5f2Rw" (JSON::ParserError)
        },
        "headers": {
          "Content-Type": "application/json; charset=UTF-8"
        },
        "matchingRules": {
          "$.body.token": {
            "match": "regex",
            "regex": "^[A-Za-z0-9-_=]+\\\\.[A-Za-z0-9-_=]+\\\\.?[A-Za-z0-9-_.+/=]*$"
          }
        },
        "status": 200
      }
    }
  ],
  "metadata": {
    "pact-jvm": {
      "version": "4.3.5"
    },
    "pactSpecification": {
      "version": "2.0.0"
    }
  },
  "provider": {
    "name": "OtacProviderService"
  }
}
'
it doesn't happen 100% and I've tried countless things to fix it with my variable and my regex etc but it still pops up every so often, can anyone please give some guidance here 🙏 ? im using kotlin so pact-jvm, apologies if wrong channel and then pact cli docker image