Box API call returns large invalid access token
回答済みWe are using BoxSDK for Salesforce and BoxPlatformApiConnection class to get the access token and sometimes the API call returns a larger invalid access token. It happens sporadically
Below is an example of the email we are receiving:
'BoxUtil' for job id '7074w00009yfQRE' : Update failed. First exception on row 0 with id a0B4A00001356NmUAI; first error: STRING_TOO_LONG, access token: data value too large: 1!uCLAlRKgw4pZdZEPy9xuh... Apex script unhandled exception by user/organization: (Salesforce Org ID) Failed to invoke future method 'public static void setAccessToken()' on class 'BoxUtil' for job id '7074w00009yfQRE' caused by: System.DmlException: Update failed. First exception on row 0 with id a0B4A00001356NmUAI; first error: STRING_TOO_LONG, access token: data value too large: 1!uCLAlRKgw4pZdZEPy9xuh0oPEkHMZikAs9HwbpTXj0JWyytjBUoO4lmBh23ta7zodppMc1ESVx8lCT-eSh6Lvi6X-SYrUkL4_wQgvUN2QRjZ8jxdhuSGw3k91pnSr7A5ZkAkECvlKI6_RDad3UH4oBma3r1iTmcDh-ft-mBNgoerlFrLXptx5zEnZt7L1jxMlGxg1jKFDpbMXNkHIdd7MIigrcRoJzoyZDOKfr2cUAEar8_v7ZHHouytepOHMTaFWNyvbrMufMlTIemIPyz5yZyjhm6qqilbDKQWKXEeypbJGwrz89ZVXLstYVmDb1ki7GXXlx43q2eCUIUoA_KlYiOHXFNEp_2gq9fTLawRZQsL4mbb1fUrJYWCTd2f8ZkaZAjNQgvoToIu8m5CmYgMfPvws1C_K9Zu8SD7u3bz502EjpirGbquHlzPHp3ecTXImhwAwxoT5D2uzWPdz81Ljxy34ysmI2xJoy7isR > Q7xW0oB-g4DzA9uVfMXYF5QDX5OxBqUqHESg1uHG16nm_iXIRpBuX_qMTJfEhBVXTycstvtAe5qrqTHORlOCPqU27_BqDoUpfdgDLlEiQqoynNT4CLngIjkPgG13LeV0kqiPnk6yS1JG9YLMWevpk2H7
(max length=50): [access_token__c]
Class.BoxUtil.setAccessToken: line 29, column 1
-
Hi
In August 2021 we announced a change to the token format for JWT tokens
https://box.dev/changelog/#2021-08-04-changes-to-jwt-token-format
Looks like you might be inserting the token into a database field that is limited to 50 characters. You can read through the guide in the change log referenced above for steps to take to make sure your database can accept the new token format.
Best regards,
Peter Christensen, Platform Solutions Engineer
投稿コメントは受け付けていません。
コメント
1件のコメント