Authentication error on attempt to tail worker logs

Hello,

I started to get “Authentication error” on attempt to call “/client/v4/accounts/”+CF_ACCOUNT_ID+“/workers/scripts/” + WORKER_NAME + “/tails”:

{"success": false, "errors": [{"code": 10000, "message": "Authentication error"}]}

Token is valid:

{"result":{"id":"364d27bf7d1d2fe583358ff18ebbe3ce","status":"active","expires_on":"2025-11-01T23:59:59Z"},"success":true,"errors":[],"messages":[{"code":10000,"message":"This API Token is valid and active","type":null}]}

My code hasn’t been changed.