I ran into the same error, and it was also caused by a bad JWT. In my case the problem was caused by the scope property. E.g.:
{
"iss": "57246542-96fe-1a63e053-0824d011072a",
"iat": 1623085200,
"exp": 1623086400,
"aud": "appstoreconnect-v1",
"bid": "com.example.testbundleid2021",
"scope": [ "PATCH /v1/appStoreVersionLocalizations/{id}" ]
}
The scope property doesn't cause problems with GET requests, but it causes PATCH requests to fail with The request method is not valid for the resource path.
Fixed by omitting the scope property.
Post
Replies
Boosts
Views
Activity
I've also been getting these errors with a small percentage of users. It started about two weeks ago. I can't reproduce the error locally.
You can check the SDK version like so:#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 // Xcode 12 and iOS 14, or greater
// Xcode 11 will not see this code.
#endif