テナント登録時のエラーについて
お世話になっております。
テナント登録時に以下エラーが発生し登録が出来ない状況です。
申し訳ございませんが解決方法についてご教示頂きたくよろしくお願いいたします。
<エラー内容>
"{\"errorMessage\":\"Service fail, HTTP/1.1 400 Bad Request, {\\\"code\\\":400,\\\"message\\\":\\\"invalid character 'a' in literal null (expecting 'u')\\\"}\",\"errorCode\":\"090\",\"code\":\"SERVICE_UNAVAILABLE\"}"
<ソース>
  def apipost
    uri = URI.parse("https://apis.worksmobile.com/" + API_ID + "/message/registerBot/v4")
    http = Net::HTTP.new(uri.host, uri.port)
    header = {
        'Content-type'=> "application/json",
        'consumerKey'=> CONSUMER_KEY,
        'Authorization'=> TOKEN
    }
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    req = Net::HTTP::Post.new(uri.path,header)
    req.set_form_data({'name' => "TestBot",
                        'i18nNames' => [{"language"=>"ja_JP","name"=>"testbot"}], 
                        'photoUrl' => "https://developers.worksmobile.com/favicon.png", 
                        'i18nPhotoUrls' => [{"language"=>"ja_JP","photoUrl"=>"https://developers.worksmobile.com/favicon.png"}],
                        'description'=> "WorksMobile's A.I. conversation enabled bot", 
                        'i18nDescriptions'=> [{"language"=>"ja_JP","description"=>"testbot"}], 
                        'managerList'=> ["hoge@hoge"],
                        'useGroupJoin'=> true }, ';')
    res = http.request(req)
    return res
  end
投稿に新しいコメントが追加されましたら通知を送信します。
                
コメント1
업데이트 된 답글입니다.
LINE WORKS 公式アカウント
Request BodyのJSONに構文エラーが発生していると推測します。
正しいJSON形式でRequestされているか、再度ご確認お願いできますでしょうか。
2018.06.21
まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。