You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Youtubeのサムネイルを取得してシンメトリー画像を作り(ここまでは想定通りのはず), TwitterのAPIに画像をアップロードするところでいくつかの画像がAPIから棄却される
返却されてるエラーは以下の media type unrecognized のもの
$ ts-node --files src/symmetryYoutubeThumbs.ts
データベースを検索中
videoId: 8rUgR3PeV7w を処理します
videoId: c5wzDadfq00 を処理します
Wrote 1st image.
Wrote 2nd image.
Wrote 1st image.
Wrote 2nd image.
Wrote 1st image.
Wrote 2nd image.
{
statusCode: 400,
data: '{"request":"\\/1.1\\/media\\/upload.json","error":"media type unrecognized."}'
}
{
statusCode: 400,
data: '{"request":"\\/1.1\\/media\\/upload.json","error":"media type unrecognized."}'
}
media Upload Success 1393289793715335169
media Upload Success 1393289793765732354
media Upload Success 1393289793908338688
media Upload Success 1393289794331971584
media Upload Success 1393289795820916737
media Upload Success 1393289796508733440
media Upload Success 1393289808315781122
なにがおきてる
Youtubeのサムネイルを取得してシンメトリー画像を作り(ここまでは想定通りのはず), TwitterのAPIに画像をアップロードするところでいくつかの画像がAPIから棄却される
返却されてるエラーは以下の
media type unrecognized
のものあやしいところ
src/modules/generateImages.ts
src/modules/makeSymmetryImages.ts
generateTweetsImage()
で元画像を含めたbase64
の画像群(3つ)を配列に格納して返却The text was updated successfully, but these errors were encountered: