Bot

auth_tokenリクエスト時に、サーバーからunknown exceptionが返ってきます(sandboxにて発生)

吉田泰博

2020.05.12既読 2892

お世話になります。
これまで、本環境・sandboxともに問題なくauth_token取得できていたのですが、久しぶりにsandboxでauto_tokenを取得しようとしたところ、
以下のエラーが返ってきてauth_tokenが取得できません。
{"message"=>"unknown exception", "detail"=>"\n### Error querying database.  Cause: org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed\n### The error may exist in file [/home1/irteam/deploy/nwe_auth/master-20200421125535.6_20200421_1496/WEB-INF/classes/sqlMapper/admin/consumerKeyMapper.xml]\n### The error may involve ConsumerKeyDAO.selectConsumerKeyInfo\n### The error occurred while executing a query\n### SQL: SELECT /* consumerKeyDAO.selectConsumerKeyInfo */    tnnt_id     AS tenantId,    cnsmr_tp_cd AS consumerTypeCode,    cnsmr_nm    AS consumerName,    cnsmr_key   AS consumerKey,    cnsmr_scrt  AS consumerSecret,    oa_tnnt_id  AS openApiTenantId,    solu_patr_app_id  AS solutionPartnerAppId   FROM    nwe_oa_cnsmr   WHERE    tnnt_id = ?    AND cnsmr_tp_cd = ?    AND cnsmr_key = ?\n### Cause: org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed\n; bad SQL grammar []; nested exception is org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed", "code"=>"99"}
心当たりとしては
- auth_tokenが返ってこないので連続で叩いてしまった可能性はある
- 組織連携APIのon/offは切り替えた
というあたりです。
どのようにすればこのエラーが解消されますでしょうか?
リクエストは以下のとおりです。
https://sandbox-auth.worksmobile.com/b/(私のAPI ID)/server/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=(JWTエンコード結果)
どうぞよろしくお願いいたします。

コメント1

  • 업데이트 된 답글입니다.

    LINE WORKS 公式アカウント

    エラー内容を確認したところ、Token Request ではなく、利用されている DataBase へのアクセスに失敗しているようです。
    consumerKey などを設定している DB の設定をご確認ください。

    なお、大変申し訳ございませんが、Community の性質上、個別のエラーに関しましてはお答えいたしかねます。
    個別のエラーに関しましては担当のパートナー営業までご相談ください。

    2020.05.14

    0
前の投稿 トークBotから位置情報の送信は可能でしょうか?
次の投稿5/9 組織連携APIエラー
リスト

まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。