neet / masto.js

🐘 Universal Mastodon API client for JavaScript
https://neet.github.io/masto.js/
MIT License
732 stars 48 forks source link

Attachments are uploaded correctly (apparently) but not in status #823

Closed outaTiME closed 1 year ago

outaTiME commented 1 year ago

I've been debugging this problem for several days now and I don't understand the reason for it. Randomly, the attachments upload correctly (apparently), but they don't save along with my status creation.

I have a service running in AWS on Node 16 with version 5.5.1 of masto and configuring the library with debug mode enabled, I see a 404 (HTTP failed Response) when getting the image and then in a subsequent call like that request could be resolved (possibly this is due to the waitFor logic), however the call to create the status is made without the attachment (blank media_attachments) even though it has been uploaded correctly.

This is the code that makes the creation (the file that comes as a parameter is a buffer):

import { login } from 'masto';

// https://github.com/neet/masto.js/blob/main/examples/create-new-status-with-image.ts
export const publish = async(caption, file) => {
   try {
     const mast = await login({
       url: process.env.MASTODON_URL,
       accessToken: process.env.MASTODON_ACCESS_TOKEN,
       logLevel: 'debug',
     });
     constattachment =
       file &&
       (await masto.v2.mediaAttachments.create({
         file,
       }));
     const { id: status_id } = await masto.v1.statuses.create({
       status: caption,
       visibility: 'public',
       ...(attachment && {
         mediaIds: [attachment.id],
       }),
     });
     return {
       status_id,
       ...(attachment && {
         media_id: attachment.id,
       }),
     };
   } catch(error) {
     console.error(
       'Unable to publish to mastodon',
       JSON.stringify({ error: error.message })
     );
     // unhandled error
     throw error;
   }
};

And here I leave the logs generated by the service:

CleanShot 2023-01-17 at 21 49 21

CleanShot 2023-01-17 at 22 22 42

CleanShot 2023-01-17 at 22 23 27

Click to see full log ``` INFO ↑ GET https://mastodon.social/api/v1/instance undefined DEBUG body null INFO ↓ GET https://mastodon.social/api/v1/instance undefined DEBUG body {""uri"":""mastodon.social"",""title"":""Mastodon"",""short_description"":""The original server operated by the Mastodon gGmbH non-profit"",""description"":"""",""email"":""staff@mastodon.social"",""version"":""4.0.2"",""urls"":{""streaming_api"":""wss://mastodon.social""},""stats"":{""user_count"":921486,""status_count"":48627565,""domain_count"":48720},""thumbnail"":""https://files.mastodon.social/site_uploads/files/000/000/001/@1x/57c12f441d083cde.png"",""languages"":[""en""],""registrations"":false,""approval_required"":false,""invites_enabled"":true,""configuration"":{""accounts"":{""max_featured_tags"":10},""statuses"":{""max_characters"":500,""max_media_attachments"":4,""characters_reserved_per_url"":23},""media_attachments"":{""supported_mime_types"":[""image/jpeg"",""image/png"",""image/gif"",""image/heic"",""image/heif"",""image/webp"",""image/avif"",""video/webm"",""video/mp4"",""video/quicktime"",""video/ogg"",""audio/wave"",""audio/wav"",""audio/x-wav"",""audio/x-pn-wave"",""audio/vnd.wave"",""audio/ogg"",""audio/vorbis"",""audio/mpeg"",""audio/mp3"",""audio/webm"",""audio/flac"",""audio/aac"",""audio/m4a"",""audio/x-m4a"",""audio/mp4"",""audio/3gpp"",""video/x-ms-asf""],""image_size_limit"":10485760,""image_matrix_limit"":16777216,""video_size_limit"":41943040,""video_frame_rate_limit"":60,""video_matrix_limit"":2304000},""polls"":{""max_options"":4,""max_characters_per_option"":50,""min_expiration"":300,""max_expiration"":2629746}},""contact_account"":{""id"":""1"",""username"":""Gargron"",""acct"":""Gargron"",""display_name"":""Eugen Rochko"",""locked"":false,""bot"":false,""discoverable"":true,""group"":false,""created_at"":""2016-03-16T00:00:00.000Z"",""note"":""\u003cp\u003eFounder, CEO and lead developer \u003cspan class=\""h-card\""\u003e\u003ca href=\""https://mastodon.social/@Mastodon\"" class=\""u-url mention\""\u003e@\u003cspan\u003eMastodon\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e, Germany.\u003c/p\u003e"",""url"":""https://mastodon.social/@Gargron"",""avatar"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""header"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""header_static"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""followers_count"":288544,""following_count"":342,""statuses_count"":73066,""last_status_at"":""2023-01-17"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Patreon"",""value"":""\u003ca href=\""https://www.patreon.com/mastodon\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003epatreon.com/mastodon\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""rules"":[{""id"":""1"",""text"":""Sexually explicit or violent media must be marked as sensitive when posting""},{""id"":""2"",""text"":""No racism, sexism, homophobia, transphobia, xenophobia, or casteism""},{""id"":""3"",""text"":""No incitement of violence or promotion of violent ideologies""},{""id"":""4"",""text"":""No harassment, dogpiling or doxxing of other users""},{""id"":""5"",""text"":""No content illegal in Germany""},{""id"":""7"",""text"":""Do not share intentionally false or misleading information""}]} DEBUG Masto.js initialised MastoConfig { props: { url: 'https://mastodon.social', accessToken: 'xxx', logLevel: 'debug', version: SemVer2 { options: [Object], loose: true, includePrerelease: false, raw: '4.0.2', major: 4, minor: 0, patch: 2, prerelease: [], build: [], version: '4.0.2' }, streamingApiUrl: 'wss://mastodon.social' }, serializer: SerializerNativeImpl {} } INFO ↑ POST https://mastodon.social/api/v2/media undefined DEBUG body FormData3 { _overheadLength: 160, _valueLength: 507717, _valuesToMeasure: [], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: false, _streams: [ '----------------------------793820681180656593245372\r ' + 'Content-Disposition: form-data; name=""file""; filename=""blob""\r ' + 'Content-Type: application/octet-stream\r ' + '\r ', , [Function: bound ] ], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------793820681180656593245372', _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1 } INFO ↓ POST https://mastodon.social/api/v2/media undefined DEBUG body {""id"":""109706560687655487"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/706/560/687/655/487/original/9eac5d1990ac9dd7.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/706/560/687/655/487/small/9eac5d1990ac9dd7.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04e+j~XM|4W.9tlt6R5zM_Mn+D%[f=hS|Fq""} INFO ↑ GET https://mastodon.social/api/v1/media/109706560687655487 undefined DEBUG body null DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109706560687655487', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } INFO ↑ GET https://mastodon.social/api/v1/media/109706560687655487 undefined DEBUG body null INFO ↓ GET https://mastodon.social/api/v1/media/109706560687655487 undefined DEBUG body {""id"":""109706560687655487"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/706/560/687/655/487/original/9eac5d1990ac9dd7.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/706/560/687/655/487/small/9eac5d1990ac9dd7.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04e+j~XM|4W.9tlt6R5zM_Mn+D%[f=hS|Fq""} INFO ↑ POST https://mastodon.social/api/v1/statuses undefined DEBUG body INFO ↓ POST https://mastodon.social/api/v1/statuses undefined DEBUG body {""id"":""109706560901933647"",""created_at"":""2023-01-17T21:01:11.579Z"",""in_reply_to_id"":null,""in_reply_to_account_id"":null,""sensitive"":false,""spoiler_text"":"""",""visibility"":""public"",""language"":""es"",""uri"":""https://mastodon.social/users/AmbitoDolar/statuses/109706560901933647"",""url"":""https://mastodon.social/@AmbitoDolar/109706560901933647"",""replies_count"":0,""reblogs_count"":0,""favourites_count"":0,""edited_at"":null,""favourited"":false,""reblogged"":false,""muted"":false,""bookmarked"":false,""pinned"":false,""content"":""\u003cp\u003eCierre de jornada. OFICIAL: 180,74–189,74 (+0,14%), BLUE: 374,00–378,00 (+2,16%), TARJETA: 332,05 (+0,14%), QATAR: 379,48 (+0,14%), AHORRO: 313,07 (+0,14%), CCL: 362,37 (+1,87%), MEP: 341,89 (-0,62%), CRIPTO: 361,15 (+2,18%), MAYORISTA: 182,30–182,50 (+0,16%).\u003c/p\u003e"",""filtered"":[],""reblog"":null,""application"":{""name"":""IFTTT"",""website"":null},""account"":{""id"":""109689487628890135"",""username"":""AmbitoDolar"",""acct"":""AmbitoDolar"",""display_name"":""Ámbito DΓ³lar"",""locked"":false,""bot"":true,""discoverable"":false,""group"":false,""created_at"":""2023-01-14T00:00:00.000Z"",""note"":""\u003cp\u003eConocΓ© las distintas cotizaciones de la divisa norteamericana en la Argentina de manera simple, elegante y efectiva.\u003c/p\u003e"",""url"":""https://mastodon.social/@AmbitoDolar"",""avatar"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""header"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""header_static"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""followers_count"":2,""following_count"":0,""statuses_count"":31,""last_status_at"":""2023-01-17"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Sitio web"",""value"":""\u003ca href=\""https://ambito-dolar.app\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://\u003c/span\u003e\u003cspan class=\""\""\u003eambito-dolar.app\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""media_attachments"":[],""mentions"":[],""tags"":[],""emojis"":[],""card"":null,""poll"":null} ```
neet commented 1 year ago

@outaTiME Unfortunately, I couldn't reproduce the problem you're facing. The snippet you provided worked without any problem in my environment.

Since media uploading is one of the most complex layers that consists of factors depending on your environment, I cannot infer what is going on just by seeing the error messages. I would be able to identify the problem sooner if you show me a repository for the minimal reproduction.

neet commented 1 year ago

The things I noticed:

MastoHttpUnprocessableEntityError: Cannot attach files that have not finished processing. Try again in a moment! at createHttpError (file:///Users/nucx/ghq/github.com/neet/masto.js/dist/index.js:150:20) at HttpNativeImpl. (file:///Users/nucx/ghq/github.com/neet/masto.js/dist/index.js:590:24) at Generator.next () at fulfilled (file:///Users/nucx/ghq/github.com/neet/masto.js/dist/index.js:515:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { isMastoError: true, description: 'No further description is provided for this error', details: undefined, statusCode: 422,


- Interestingly, I tried to create a status in `mastodon.social` with a media attachment by specifying `"109706560687655487"` which is the ID you're claiming that you failed to create a status with, and it turned out that I've got a status with empty media. However, this never happens with my own media.

```ts
const { url } = await masto.v1.statuses.create({
  status: 'caption',
  visibility: 'private',
  mediaIds: ['109706560687655487'],
});

Outcome:

image

As the next step, I tried to download the image you uploaded by the following command

curl -g https://files.mastodon.social/media_attachments/files/109/706/560/687/655/487/original/9eac5d1990ac9dd7.jpeg > media.jpeg

And then upload it on my own

const file = fs.readFileSync('./sandbox/media.jpeg');

const masto = await login({
  url: process.env.MASTODON_URL,
  accessToken: process.env.MASTODON_TOKEN,
  logLevel: 'debug',
});

const attachment = await masto.v2.mediaAttachments.create({ file });

const { url } = await masto.v1.statuses.create({
  status: 'caption',
  visibility: 'direct',
  mediaIds: [attachment.id],
});

This successfully created a post.

image
neet commented 1 year ago

@outaTiME I suspect some error occurred on the server side during the image processing. Can you try identifying the factor by yourself by changing the image to upload or instance?

If you still fail, it is highly possible that the problem is not caused by Masto.js and rather a problem in Mastodon itself or some other component that you're using.

I look forward to your reply.

outaTiME commented 1 year ago

Hi @neet, thanks for quick response, and I understand that it is not an easy case to reproduce given the complex infrastructure.

This is an open source project, and it is available online at: https://github.com/outaTiME/ambito-dolar, but unfortunately I can't commit my local changes yet.

The piece of code I shared with you works most of the time, but there are cases where it doesn't.

The script below uses a buffer generated from puppeteer (https://github.com/outaTiME/ambito-dolar/blob/master/packages/api/src/libs/chrome.js) which is used in parallel to upload an image to instagram and mastodon.

I could try generating a copy of the buffer to rule out that it is a concurrency problem in reading.

import AmbitoDolar from '@ambito-dolar/core';

import { generateScreenshot } from '../libs/chrome';
import { publish as publishToInstagram } from '../libs/instagram';
import { publish as publishToMastodon } from '../libs/mastodon';
import Shared from '../libs/shared';

export const handler = Shared.wrapHandler(async (event) => {
  const {
    type,
    title = AmbitoDolar.getNotificationTitle(type),
    caption,
  } = JSON.parse(event.Records[0].Sns.Message);
  // must required for social notification
  if (!type || !title || !caption) {
    throw new Error('Message is malformed, missing or has an invalid value');
  }
  console.info(
    'Message received',
    JSON.stringify({
      type,
      title,
      caption,
    })
  );
  const screenshot_url = Shared.getSocialScreenshotUrl({
    title,
  });
  const promises = [];
  try {
    const {
      target_url: image_url,
      ig_file: file,
      ig_story_file: story_file,
    } = await generateScreenshot(screenshot_url);
    promises.push(publishToInstagram(file, caption, story_file));
    promises.push(publishToMastodon(caption, file));
    promises.push(
      Shared.triggerSendSocialNotificationsEvent(caption, image_url)
    );
  } catch (error) {
    console.warn(
      'Unable to generate the screenshot for notification',
      JSON.stringify({ type, title, error: error.message })
    );
    // send as plain
  }
  const results = await Promise.all(promises);
  console.info('Completed', JSON.stringify(results));
  return results;
});

But again, which is weird to me (as I mentioned above) the image to mastodon would seem to upload correctly.

Another thing I wanted to do was try the 4.x version of masto.js to see if it works without problems with axios.

neet commented 1 year ago

@outaTiME Thank you for providing the repo. I'll try running it later in my local environment and see what is wrong.

outaTiME commented 1 year ago

thanks again @neet , I'll keep testing and keep you informed

outaTiME commented 1 year ago

@neet today I had a double case again, in the first execution of the service (at the beginning of the day 10:00 UTC) the upload of the image was done without errors or retries and it correctly impacted the creation of the status and in the second execution ( at the end of the day 21:00 UTC) throw HTTP failed Response error twice and after that the image uploaded successfully, but the status was created without it.

The strange thing is that if there are errors in the debug log (cause of the waitFor because the upload takes time to hit) the state creation is done without attachments.

Then I leave both raw logs to see if they are useful.

Click to see the full log of the morning (the one that worked) ``` timestamp,message 1674046839022,"START RequestId: 627a5a14-41d6-48bf-aa16-36ae8c45c070 Version: $LATEST " 1674046839074,"2023-01-18T13:00:39.073Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Message received {""type"":""open"",""title"":""Apertura de jornada"",""caption"":""Apertura de jornada. OFICIAL: 180,74–189,74 (+0,14%), BLUE: 374,00–378,00 (0,00%), TARJETA: 332,05 (+0,14%), QATAR: 379,48 (+0,14%), AHORRO: 313,07 (+0,14%), CCL: 362,19 (-0,04%), MEP: 341,89 (0,00%), CRIPTO: 364,67 (+0,97%), MAYORISTA: 182,30–182,50 (+0,16%).""} " 1674046855085,"2023-01-18T13:00:55.084Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Screenshot completed {""url"":""https://xxx.cloudfront.net/?title=Apertura+de+jornada"",""target_url"":""https://i.imgur.com/PbnC50O.png"",""duration"":16.008} " 1674046855096,"2023-01-18T13:00:55.096Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↑ GET https://mastodon.social/api/v1/instance undefined " 1674046855096,"2023-01-18T13:00:55.096Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body null " 1674046855098,"2023-01-18T13:00:55.098Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Triggering event {""event"":""send-social-notifications-with-photo"",""payload"":{""value1"":""Apertura de jornada. OFICIAL: 180,74–189,74 (+0,14%), BLUE: 374,00–378,00 (0,00%), TARJETA: 332,05 (+0,14%), QATAR: 379,48 (+0,14%), AHORRO: 313,07 (+0,14%), CCL: 362,19 (-0,04%), MEP: 341,89 (0,00%), CRIPTO: 364,67 (+0,97%), MAYORISTA: 182,30–182,50 (+0,16%)."",""value2"":""https://i.imgur.com/PbnC50O.png""}} " 1674046855163,"2023-01-18T13:00:55.163Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Event triggered {""event"":""send-social-notifications-with-photo"",""duration"":0.065} " 1674046855606,"2023-01-18T13:00:55.606Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↓ GET https://mastodon.social/api/v1/instance undefined " 1674046855606,"2023-01-18T13:00:55.606Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body {""uri"":""mastodon.social"",""title"":""Mastodon"",""short_description"":""The original server operated by the Mastodon gGmbH non-profit"",""description"":"""",""email"":""staff@mastodon.social"",""version"":""4.0.2"",""urls"":{""streaming_api"":""wss://mastodon.social""},""stats"":{""user_count"":921532,""status_count"":48680897,""domain_count"":48756},""thumbnail"":""https://files.mastodon.social/site_uploads/files/000/000/001/@1x/57c12f441d083cde.png"",""languages"":[""en""],""registrations"":false,""approval_required"":false,""invites_enabled"":true,""configuration"":{""accounts"":{""max_featured_tags"":10},""statuses"":{""max_characters"":500,""max_media_attachments"":4,""characters_reserved_per_url"":23},""media_attachments"":{""supported_mime_types"":[""image/jpeg"",""image/png"",""image/gif"",""image/heic"",""image/heif"",""image/webp"",""image/avif"",""video/webm"",""video/mp4"",""video/quicktime"",""video/ogg"",""audio/wave"",""audio/wav"",""audio/x-wav"",""audio/x-pn-wave"",""audio/vnd.wave"",""audio/ogg"",""audio/vorbis"",""audio/mpeg"",""audio/mp3"",""audio/webm"",""audio/flac"",""audio/aac"",""audio/m4a"",""audio/x-m4a"",""audio/mp4"",""audio/3gpp"",""video/x-ms-asf""],""image_size_limit"":10485760,""image_matrix_limit"":16777216,""video_size_limit"":41943040,""video_frame_rate_limit"":60,""video_matrix_limit"":2304000},""polls"":{""max_options"":4,""max_characters_per_option"":50,""min_expiration"":300,""max_expiration"":2629746}},""contact_account"":{""id"":""1"",""username"":""Gargron"",""acct"":""Gargron"",""display_name"":""Eugen Rochko"",""locked"":false,""bot"":false,""discoverable"":true,""group"":false,""created_at"":""2016-03-16T00:00:00.000Z"",""note"":""\u003cp\u003eFounder, CEO and lead developer \u003cspan class=\""h-card\""\u003e\u003ca href=\""https://mastodon.social/@Mastodon\"" class=\""u-url mention\""\u003e@\u003cspan\u003eMastodon\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e, Germany.\u003c/p\u003e"",""url"":""https://mastodon.social/@Gargron"",""avatar"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""header"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""header_static"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""followers_count"":288622,""following_count"":345,""statuses_count"":73070,""last_status_at"":""2023-01-18"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Patreon"",""value"":""\u003ca href=\""https://www.patreon.com/mastodon\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003epatreon.com/mastodon\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""rules"":[{""id"":""1"",""text"":""Sexually explicit or violent media must be marked as sensitive when posting""},{""id"":""2"",""text"":""No racism, sexism, homophobia, transphobia, xenophobia, or casteism""},{""id"":""3"",""text"":""No incitement of violence or promotion of violent ideologies""},{""id"":""4"",""text"":""No harassment, dogpiling or doxxing of other users""},{""id"":""5"",""text"":""No content illegal in Germany""},{""id"":""7"",""text"":""Do not share intentionally false or misleading information""}]} " 1674046855608,"2023-01-18T13:00:55.608Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG Masto.js initialised MastoConfig { props: { url: 'https://mastodon.social', accessToken: 'xxx', logLevel: 'debug', version: SemVer2 { options: [Object], loose: true, includePrerelease: false, raw: '4.0.2', major: 4, minor: 0, patch: 2, prerelease: [], build: [], version: '4.0.2' }, streamingApiUrl: 'wss://mastodon.social' }, serializer: SerializerNativeImpl {} } " 1674046855612,"2023-01-18T13:00:55.611Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↑ POST https://mastodon.social/api/v2/media undefined " 1674046855613,"2023-01-18T13:00:55.613Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body FormData3 { _overheadLength: 160, _valueLength: 508731, _valuesToMeasure: [], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: false, _streams: [ '----------------------------862028957689623463709051\r ' + 'Content-Disposition: form-data; name=""file""; filename=""blob""\r ' + 'Content-Type: application/octet-stream\r ' + '\r ', , [Function: bound ] ], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------862028957689623463709051', _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1 } " 1674046856209,"2023-01-18T13:00:56.209Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Session restored " 1674046857612,"2023-01-18T13:00:57.612Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↓ POST https://mastodon.social/api/v2/media undefined " 1674046857612,"2023-01-18T13:00:57.612Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body {""id"":""109710334829682698"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/original/258c2b223e29a637.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/small/258c2b223e29a637.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04x-+?^Q:HY^-=;WZIuRF~pNbE0}0tpWlWQ""} " 1674046858615,"2023-01-18T13:00:58.615Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↑ GET https://mastodon.social/api/v1/media/109710334829682698 undefined " 1674046858615,"2023-01-18T13:00:58.615Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body null " 1674046858936,"2023-01-18T13:00:58.936Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↓ GET https://mastodon.social/api/v1/media/109710334829682698 undefined " 1674046858936,"2023-01-18T13:00:58.936Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body {""id"":""109710334829682698"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/original/258c2b223e29a637.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/small/258c2b223e29a637.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04x-+?^Q:HY^-=;WZIuRF~pNbE0}0tpWlWQ""} " 1674046858936,"2023-01-18T13:00:58.936Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO >>> attachment {""id"":""109710334829682698"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/original/258c2b223e29a637.jpeg"",""previewUrl"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/small/258c2b223e29a637.jpeg"",""remoteUrl"":null,""previewRemoteUrl"":null,""textUrl"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04x-+?^Q:HY^-=;WZIuRF~pNbE0}0tpWlWQ""} " 1674046858937,"2023-01-18T13:00:58.937Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↑ POST https://mastodon.social/api/v1/statuses undefined " 1674046858937,"2023-01-18T13:00:58.937Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body " 1674046859386,"2023-01-18T13:00:59.386Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO ↓ POST https://mastodon.social/api/v1/statuses undefined " 1674046859386,"2023-01-18T13:00:59.386Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 DEBUG body {""id"":""109710334966923783"",""created_at"":""2023-01-18T13:00:59.245Z"",""in_reply_to_id"":null,""in_reply_to_account_id"":null,""sensitive"":false,""spoiler_text"":"""",""visibility"":""public"",""language"":""es"",""uri"":""https://mastodon.social/users/AmbitoDolar/statuses/109710334966923783"",""url"":""https://mastodon.social/@AmbitoDolar/109710334966923783"",""replies_count"":0,""reblogs_count"":0,""favourites_count"":0,""edited_at"":null,""favourited"":false,""reblogged"":false,""muted"":false,""bookmarked"":false,""pinned"":false,""content"":""\u003cp\u003eApertura de jornada. OFICIAL: 180,74–189,74 (+0,14%), BLUE: 374,00–378,00 (0,00%), TARJETA: 332,05 (+0,14%), QATAR: 379,48 (+0,14%), AHORRO: 313,07 (+0,14%), CCL: 362,19 (-0,04%), MEP: 341,89 (0,00%), CRIPTO: 364,67 (+0,97%), MAYORISTA: 182,30–182,50 (+0,16%).\u003c/p\u003e"",""filtered"":[],""reblog"":null,""application"":{""name"":""IFTTT"",""website"":null},""account"":{""id"":""109689487628890135"",""username"":""AmbitoDolar"",""acct"":""AmbitoDolar"",""display_name"":""Ámbito DΓ³lar"",""locked"":false,""bot"":true,""discoverable"":false,""group"":false,""created_at"":""2023-01-14T00:00:00.000Z"",""note"":""\u003cp\u003eConocΓ© las distintas cotizaciones de la divisa norteamericana en la Argentina de manera simple, elegante y efectiva.\u003c/p\u003e"",""url"":""https://mastodon.social/@AmbitoDolar"",""avatar"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""header"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""header_static"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""followers_count"":2,""following_count"":0,""statuses_count"":32,""last_status_at"":""2023-01-18"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Sitio web"",""value"":""\u003ca href=\""https://ambito-dolar.app\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://\u003c/span\u003e\u003cspan class=\""\""\u003eambito-dolar.app\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""media_attachments"":[{""id"":""109710334829682698"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/original/258c2b223e29a637.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/710/334/829/682/698/small/258c2b223e29a637.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04x-+?^Q:HY^-=;WZIuRF~pNbE0}0tpWlWQ""}],""mentions"":[],""tags"":[],""emojis"":[],""card"":null,""poll"":null} " 1674046867686,"2023-01-18T13:01:07.686Z 627a5a14-41d6-48bf-aa16-36ae8c45c070 INFO Completed [{""status"":""ok"",""upload_id"":""1674046856210"",""media_id"":""3018446286924393554"",""duration"":12.6},{""status_id"":""109710334966923783"",""media_id"":""109710334829682698"",""duration"":4.294},{""event"":""send-social-notifications-with-photo"",""duration"":0.065}] " 1674046867689,"END RequestId: 627a5a14-41d6-48bf-aa16-36ae8c45c070 " 1674046867689,"REPORT RequestId: 627a5a14-41d6-48bf-aa16-36ae8c45c070 Duration: 28666.38 ms Billed Duration: 28667 ms Memory Size: 1024 MB Max Memory Used: 654 MB Init Duration: 1098.66 ms " ```
Click to see the full record of late (the one that failed) ``` timestamp,message 1674075650442,"START RequestId: 1e166f43-7781-48e0-88a8-968fb39694e0 Version: $LATEST " 1674075650446,"2023-01-18T21:00:50.446Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Message received {""type"":""close"",""title"":""Cierre de jornada"",""caption"":""Cierre de jornada. OFICIAL: 180,98–189,98 (+0,12%), BLUE: 373,00–377,00 (-0,26%), TARJETA: 332,47 (+0,12%), QATAR: 379,96 (+0,12%), AHORRO: 313,47 (+0,12%), CCL: 352,18 (-2,81%), MEP: 340,30 (-0,46%), CRIPTO: 355,17 (-1,65%), MAYORISTA: 182,61–182,81 (+0,16%).""} " 1674075666632,"2023-01-18T21:01:06.631Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Screenshot completed {""url"":""https://xxx.cloudfront.net/?title=Cierre+de+jornada"",""target_url"":""https://i.imgur.com/xduIIE7.png"",""duration"":16.184} " 1674075666644,"2023-01-18T21:01:06.643Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ GET https://mastodon.social/api/v1/instance undefined " 1674075666644,"2023-01-18T21:01:06.644Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body null " 1674075666645,"2023-01-18T21:01:06.645Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Triggering event {""event"":""send-social-notifications-with-photo"",""payload"":{""value1"":""Cierre de jornada. OFICIAL: 180,98–189,98 (+0,12%), BLUE: 373,00–377,00 (-0,26%), TARJETA: 332,47 (+0,12%), QATAR: 379,96 (+0,12%), AHORRO: 313,47 (+0,12%), CCL: 352,18 (-2,81%), MEP: 340,30 (-0,46%), CRIPTO: 355,17 (-1,65%), MAYORISTA: 182,61–182,81 (+0,16%)."",""value2"":""https://i.imgur.com/xduIIE7.png""}} " 1674075666698,"2023-01-18T21:01:06.697Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Event triggered {""event"":""send-social-notifications-with-photo"",""duration"":0.052} " 1674075667165,"2023-01-18T21:01:07.165Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↓ GET https://mastodon.social/api/v1/instance undefined " 1674075667165,"2023-01-18T21:01:07.165Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body {""uri"":""mastodon.social"",""title"":""Mastodon"",""short_description"":""The original server operated by the Mastodon gGmbH non-profit"",""description"":"""",""email"":""staff@mastodon.social"",""version"":""4.0.2"",""urls"":{""streaming_api"":""wss://mastodon.social""},""stats"":{""user_count"":921556,""status_count"":48720453,""domain_count"":48783},""thumbnail"":""https://files.mastodon.social/site_uploads/files/000/000/001/@1x/57c12f441d083cde.png"",""languages"":[""en""],""registrations"":false,""approval_required"":false,""invites_enabled"":true,""configuration"":{""accounts"":{""max_featured_tags"":10},""statuses"":{""max_characters"":500,""max_media_attachments"":4,""characters_reserved_per_url"":23},""media_attachments"":{""supported_mime_types"":[""image/jpeg"",""image/png"",""image/gif"",""image/heic"",""image/heif"",""image/webp"",""image/avif"",""video/webm"",""video/mp4"",""video/quicktime"",""video/ogg"",""audio/wave"",""audio/wav"",""audio/x-wav"",""audio/x-pn-wave"",""audio/vnd.wave"",""audio/ogg"",""audio/vorbis"",""audio/mpeg"",""audio/mp3"",""audio/webm"",""audio/flac"",""audio/aac"",""audio/m4a"",""audio/x-m4a"",""audio/mp4"",""audio/3gpp"",""video/x-ms-asf""],""image_size_limit"":10485760,""image_matrix_limit"":16777216,""video_size_limit"":41943040,""video_frame_rate_limit"":60,""video_matrix_limit"":2304000},""polls"":{""max_options"":4,""max_characters_per_option"":50,""min_expiration"":300,""max_expiration"":2629746}},""contact_account"":{""id"":""1"",""username"":""Gargron"",""acct"":""Gargron"",""display_name"":""Eugen Rochko"",""locked"":false,""bot"":false,""discoverable"":true,""group"":false,""created_at"":""2016-03-16T00:00:00.000Z"",""note"":""\u003cp\u003eFounder, CEO and lead developer \u003cspan class=\""h-card\""\u003e\u003ca href=\""https://mastodon.social/@Mastodon\"" class=\""u-url mention\""\u003e@\u003cspan\u003eMastodon\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e, Germany.\u003c/p\u003e"",""url"":""https://mastodon.social/@Gargron"",""avatar"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""header"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""header_static"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""followers_count"":288669,""following_count"":345,""statuses_count"":73072,""last_status_at"":""2023-01-18"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Patreon"",""value"":""\u003ca href=\""https://www.patreon.com/mastodon\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003epatreon.com/mastodon\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""rules"":[{""id"":""1"",""text"":""Sexually explicit or violent media must be marked as sensitive when posting""},{""id"":""2"",""text"":""No racism, sexism, homophobia, transphobia, xenophobia, or casteism""},{""id"":""3"",""text"":""No incitement of violence or promotion of violent ideologies""},{""id"":""4"",""text"":""No harassment, dogpiling or doxxing of other users""},{""id"":""5"",""text"":""No content illegal in Germany""},{""id"":""7"",""text"":""Do not share intentionally false or misleading information""}]} " 1674075667167,"2023-01-18T21:01:07.167Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG Masto.js initialised MastoConfig { props: { url: 'https://mastodon.social', accessToken: 'xxx', logLevel: 'debug', version: SemVer2 { options: [Object], loose: true, includePrerelease: false, raw: '4.0.2', major: 4, minor: 0, patch: 2, prerelease: [], build: [], version: '4.0.2' }, streamingApiUrl: 'wss://mastodon.social' }, serializer: SerializerNativeImpl {} } " 1674075667170,"2023-01-18T21:01:07.170Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ POST https://mastodon.social/api/v2/media undefined " 1674075667171,"2023-01-18T21:01:07.171Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body FormData3 { _overheadLength: 160, _valueLength: 511080, _valuesToMeasure: [], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: false, _streams: [ '----------------------------971196017131374237850658\r ' + 'Content-Disposition: form-data; name=""file""; filename=""blob""\r ' + 'Content-Type: application/octet-stream\r ' + '\r ', , [Function: bound ] ], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------971196017131374237850658', _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1 } " 1674075667501,"2023-01-18T21:01:07.501Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Session restored " 1674075668903,"2023-01-18T21:01:08.903Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↓ POST https://mastodon.social/api/v2/media undefined " 1674075668903,"2023-01-18T21:01:08.903Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body {""id"":""109712223009193942"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/original/ea9de70875bc9d0f.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/small/ea9de70875bc9d0f.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U15E$.uNiyMLt,t8oLRjVz?HWoM{:@xubFO9""} " 1674075669909,"2023-01-18T21:01:09.906Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ GET https://mastodon.social/api/v1/media/109712223009193942 undefined " 1674075669909,"2023-01-18T21:01:09.906Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body null " 1674075670296,"2023-01-18T21:01:10.296Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109712223009193942', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674075671299,"2023-01-18T21:01:11.299Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ GET https://mastodon.social/api/v1/media/109712223009193942 undefined " 1674075671299,"2023-01-18T21:01:11.299Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body null " 1674075671740,"2023-01-18T21:01:11.739Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109712223009193942', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674075672760,"2023-01-18T21:01:12.760Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ GET https://mastodon.social/api/v1/media/109712223009193942 undefined " 1674075672760,"2023-01-18T21:01:12.760Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body null " 1674075673343,"2023-01-18T21:01:13.342Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↓ GET https://mastodon.social/api/v1/media/109712223009193942 undefined " 1674075673343,"2023-01-18T21:01:13.342Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body {""id"":""109712223009193942"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/original/ea9de70875bc9d0f.jpeg"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/small/ea9de70875bc9d0f.jpeg"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U15E$.uNiyMLt,t8oLRjVz?HWoM{:@xubFO9""} " 1674075673343,"2023-01-18T21:01:13.343Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO >>> attachment {""id"":""109712223009193942"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/original/ea9de70875bc9d0f.jpeg"",""previewUrl"":""https://files.mastodon.social/media_attachments/files/109/712/223/009/193/942/small/ea9de70875bc9d0f.jpeg"",""remoteUrl"":null,""previewRemoteUrl"":null,""textUrl"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U15E$.uNiyMLt,t8oLRjVz?HWoM{:@xubFO9""} " 1674075673345,"2023-01-18T21:01:13.344Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↑ POST https://mastodon.social/api/v1/statuses undefined " 1674075673345,"2023-01-18T21:01:13.344Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body " 1674075673848,"2023-01-18T21:01:13.847Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO ↓ POST https://mastodon.social/api/v1/statuses undefined " 1674075673848,"2023-01-18T21:01:13.848Z 1e166f43-7781-48e0-88a8-968fb39694e0 DEBUG body {""id"":""109712223351501387"",""created_at"":""2023-01-18T21:01:13.708Z"",""in_reply_to_id"":null,""in_reply_to_account_id"":null,""sensitive"":false,""spoiler_text"":"""",""visibility"":""public"",""language"":""es"",""uri"":""https://mastodon.social/users/AmbitoDolar/statuses/109712223351501387"",""url"":""https://mastodon.social/@AmbitoDolar/109712223351501387"",""replies_count"":0,""reblogs_count"":0,""favourites_count"":0,""edited_at"":null,""favourited"":false,""reblogged"":false,""muted"":false,""bookmarked"":false,""pinned"":false,""content"":""\u003cp\u003eCierre de jornada. OFICIAL: 180,98–189,98 (+0,12%), BLUE: 373,00–377,00 (-0,26%), TARJETA: 332,47 (+0,12%), QATAR: 379,96 (+0,12%), AHORRO: 313,47 (+0,12%), CCL: 352,18 (-2,81%), MEP: 340,30 (-0,46%), CRIPTO: 355,17 (-1,65%), MAYORISTA: 182,61–182,81 (+0,16%).\u003c/p\u003e"",""filtered"":[],""reblog"":null,""application"":{""name"":""IFTTT"",""website"":null},""account"":{""id"":""109689487628890135"",""username"":""AmbitoDolar"",""acct"":""AmbitoDolar"",""display_name"":""Ámbito DΓ³lar"",""locked"":false,""bot"":true,""discoverable"":false,""group"":false,""created_at"":""2023-01-14T00:00:00.000Z"",""note"":""\u003cp\u003eConocΓ© las distintas cotizaciones de la divisa norteamericana en la Argentina de manera simple, elegante y efectiva.\u003c/p\u003e"",""url"":""https://mastodon.social/@AmbitoDolar"",""avatar"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""header"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""header_static"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""followers_count"":2,""following_count"":0,""statuses_count"":41,""last_status_at"":""2023-01-18"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Sitio web"",""value"":""\u003ca href=\""https://www.ambito-dolar.app\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003eambito-dolar.app\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":""2023-01-18T14:01:47.452+00:00""}]},""media_attachments"":[],""mentions"":[],""tags"":[],""emojis"":[],""card"":null,""poll"":null} " 1674075676535,"2023-01-18T21:01:16.534Z 1e166f43-7781-48e0-88a8-968fb39694e0 INFO Completed [{""status"":""ok"",""upload_id"":""1674075667501"",""media_id"":""3018687956226787361"",""duration"":9.901},{""status_id"":""109712223351501387"",""media_id"":""109712223009193942"",""duration"":7.208},{""event"":""send-social-notifications-with-photo"",""duration"":0.052}] " 1674075676540,"END RequestId: 1e166f43-7781-48e0-88a8-968fb39694e0 " 1674075676540,"REPORT RequestId: 1e166f43-7781-48e0-88a8-968fb39694e0 Duration: 26096.93 ms Billed Duration: 26097 ms Memory Size: 1024 MB Max Memory Used: 679 MB Init Duration: 1132.39 ms " ```
neet commented 1 year ago

@outaTiME I'm glad to hear that the bot at least worked once. Let's make it work constantly πŸ’ͺ

HTTP failed Response

As far as I know, some instances including mastodon.social caches their API response at a specific layer. As a result, they return 404 for a media attachment which has just been created for the time being. This is totally expected so you won't see this error unless you explicitly turn logLevel: "debug" on.

This is why 404 errors are logged to your console several times, and v2.mediaAttachments.create (internally calls waitFor) automatically waits for url property of the media attachment to be truthy for you ― because you can't create a status during the process

The strange thing is that if there are errors in the debug log (cause of the waitFor because the upload takes time to hit) the state creation is done without attachments.

Interesting. I suppose this might because of the cache layer. What happens if you put a sleep in between mediaAttachments.create and statuses.create?

outaTiME commented 1 year ago

@neet Since you answered me, I have been testing, and I have not had any other HTTP failed Response error, possibly something from mastodon.social as you say, for now everything seems to work normally. I will continue testing at other times, and I also left a sleep of 5 seconds in my service.

outaTiME commented 1 year ago

Today, after a long time, I once again had a failure to publish the status with an image, it could really be a problem with the mastodon.social server or some condition that causes this.

One thing that never ceases to amaze me is that after the retries, the image is uploaded, but not along with the status.

Unfortunately, I don't think my contribution will be of much use, but I am leaving the execution logs.

Click to see full log ``` timestamp,message 1674766850470,"START RequestId: 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 Version: $LATEST " 1674766850482,"2023-01-26T21:00:50.474Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Message received {""type"":""close"",""title"":""Cierre de jornada"",""caption"":""Cierre de jornada. OFICIAL: 183,74–192,74 (+0,24%), BLUE: 381,00–385,00 (+0,52%), TARJETA: 337,30 (+0,24%), QATAR: 385,48 (+0,24%), AHORRO: 318,02 (+0,24%), CCL: 369,46 (+0,87%), MEP: 352,22 (+0,06%), CRIPTO: 364,28 (+0,05%), MAYORISTA: 185,12–185,32 (+0,15%).""} " 1674766865741,"2023-01-26T21:01:05.741Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Screenshot completed {""url"":""https://xxx.cloudfront.net/?title=Cierre+de+jornada"",""target_url"":""https://i.imgur.com/RFp9nZs.png"",""duration"":15.266} " 1674766865752,"2023-01-26T21:01:05.752Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/instance undefined " 1674766865752,"2023-01-26T21:01:05.752Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766865763,"2023-01-26T21:01:05.763Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Triggering event {""event"":""send-social-notifications-with-photo"",""payload"":{""value1"":""Cierre de jornada. OFICIAL: 183,74–192,74 (+0,24%), BLUE: 381,00–385,00 (+0,52%), TARJETA: 337,30 (+0,24%), QATAR: 385,48 (+0,24%), AHORRO: 318,02 (+0,24%), CCL: 369,46 (+0,87%), MEP: 352,22 (+0,06%), CRIPTO: 364,28 (+0,05%), MAYORISTA: 185,12–185,32 (+0,15%)."",""value2"":""https://i.imgur.com/RFp9nZs.png""}} " 1674766865818,"2023-01-26T21:01:05.817Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Event triggered {""event"":""send-social-notifications-with-photo"",""duration"":0.055} " 1674766866268,"2023-01-26T21:01:06.268Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↓ GET https://mastodon.social/api/v1/instance undefined " 1674766866268,"2023-01-26T21:01:06.268Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body {""uri"":""mastodon.social"",""title"":""Mastodon"",""short_description"":""The original server operated by the Mastodon gGmbH non-profit"",""description"":"""",""email"":""staff@mastodon.social"",""version"":""4.0.2"",""urls"":{""streaming_api"":""wss://mastodon.social""},""stats"":{""user_count"":924111,""status_count"":49195922,""domain_count"":49501},""thumbnail"":""https://files.mastodon.social/site_uploads/files/000/000/001/@1x/57c12f441d083cde.png"",""languages"":[""en""],""registrations"":false,""approval_required"":false,""invites_enabled"":true,""configuration"":{""accounts"":{""max_featured_tags"":10},""statuses"":{""max_characters"":500,""max_media_attachments"":4,""characters_reserved_per_url"":23},""media_attachments"":{""supported_mime_types"":[""image/jpeg"",""image/png"",""image/gif"",""image/heic"",""image/heif"",""image/webp"",""image/avif"",""video/webm"",""video/mp4"",""video/quicktime"",""video/ogg"",""audio/wave"",""audio/wav"",""audio/x-wav"",""audio/x-pn-wave"",""audio/vnd.wave"",""audio/ogg"",""audio/vorbis"",""audio/mpeg"",""audio/mp3"",""audio/webm"",""audio/flac"",""audio/aac"",""audio/m4a"",""audio/x-m4a"",""audio/mp4"",""audio/3gpp"",""video/x-ms-asf""],""image_size_limit"":10485760,""image_matrix_limit"":16777216,""video_size_limit"":41943040,""video_frame_rate_limit"":60,""video_matrix_limit"":2304000},""polls"":{""max_options"":4,""max_characters_per_option"":50,""min_expiration"":300,""max_expiration"":2629746}},""contact_account"":{""id"":""1"",""username"":""Gargron"",""acct"":""Gargron"",""display_name"":""Eugen Rochko"",""locked"":false,""bot"":false,""discoverable"":true,""group"":false,""created_at"":""2016-03-16T00:00:00.000Z"",""note"":""\u003cp\u003eFounder, CEO and lead developer \u003cspan class=\""h-card\""\u003e\u003ca href=\""https://mastodon.social/@Mastodon\"" class=\""u-url mention\""\u003e@\u003cspan\u003eMastodon\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e, Germany.\u003c/p\u003e"",""url"":""https://mastodon.social/@Gargron"",""avatar"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""header"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""header_static"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""followers_count"":290575,""following_count"":350,""statuses_count"":73119,""last_status_at"":""2023-01-26"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Patreon"",""value"":""\u003ca href=\""https://www.patreon.com/mastodon\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003epatreon.com/mastodon\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""rules"":[{""id"":""1"",""text"":""Sexually explicit or violent media must be marked as sensitive when posting""},{""id"":""2"",""text"":""No racism, sexism, homophobia, transphobia, xenophobia, or casteism""},{""id"":""3"",""text"":""No incitement of violence or promotion of violent ideologies""},{""id"":""4"",""text"":""No harassment, dogpiling or doxxing of other users""},{""id"":""5"",""text"":""No content illegal in Germany""},{""id"":""7"",""text"":""Do not share intentionally false or misleading information""}]} " 1674766866273,"2023-01-26T21:01:06.270Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG Masto.js initialised MastoConfig { props: { url: 'https://mastodon.social', accessToken: 'xxx', logLevel: 'debug', version: SemVer2 { options: [Object], loose: true, includePrerelease: false, raw: '4.0.2', major: 4, minor: 0, patch: 2, prerelease: [], build: [], version: '4.0.2' }, streamingApiUrl: 'wss://mastodon.social' }, serializer: SerializerNativeImpl {} } " 1674766866276,"2023-01-26T21:01:06.275Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ POST https://mastodon.social/api/v2/media undefined " 1674766866277,"2023-01-26T21:01:06.277Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body FormData3 { _overheadLength: 160, _valueLength: 400398, _valuesToMeasure: [], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: false, _streams: [ '----------------------------777223695654572497096510\r ' + 'Content-Disposition: form-data; name=""file""; filename=""blob""\r ' + 'Content-Type: application/octet-stream\r ' + '\r ', , [Function: bound ] ], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------777223695654572497096510', _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1 } " 1674766866889,"2023-01-26T21:01:06.889Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Session restored " 1674766869290,"2023-01-26T21:01:09.290Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↓ POST https://mastodon.social/api/v2/media undefined " 1674766869290,"2023-01-26T21:01:09.290Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body {""id"":""109757521484843937"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/original/1b70435ae81d25e1.png"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/small/1b70435ae81d25e1.png"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04CIv~qa2D7^T$moyNFqg_Mj[IU-X-Wf*NF""} " 1674766870293,"2023-01-26T21:01:10.293Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766870293,"2023-01-26T21:01:10.293Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766870590,"2023-01-26T21:01:10.590Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766871592,"2023-01-26T21:01:11.592Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766871592,"2023-01-26T21:01:11.592Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766871948,"2023-01-26T21:01:11.948Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766872951,"2023-01-26T21:01:12.951Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766872951,"2023-01-26T21:01:12.951Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766873438,"2023-01-26T21:01:13.438Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766874441,"2023-01-26T21:01:14.441Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766874441,"2023-01-26T21:01:14.441Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766874749,"2023-01-26T21:01:14.749Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766875754,"2023-01-26T21:01:15.752Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766875754,"2023-01-26T21:01:15.752Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766876056,"2023-01-26T21:01:16.055Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766877058,"2023-01-26T21:01:17.057Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766877058,"2023-01-26T21:01:17.057Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766877349,"2023-01-26T21:01:17.349Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766878354,"2023-01-26T21:01:18.354Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766878354,"2023-01-26T21:01:18.354Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766878648,"2023-01-26T21:01:18.648Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766879651,"2023-01-26T21:01:19.651Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766879651,"2023-01-26T21:01:19.651Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766879986,"2023-01-26T21:01:19.986Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766880989,"2023-01-26T21:01:20.989Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766880989,"2023-01-26T21:01:20.989Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766881318,"2023-01-26T21:01:21.317Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766882320,"2023-01-26T21:01:22.320Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766882320,"2023-01-26T21:01:22.320Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766882667,"2023-01-26T21:01:22.667Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG HTTP failed Response3 [Response] { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: , _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 4294967296, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://mastodon.social/api/v1/media/109757521484843937', status: 404, statusText: 'Not Found', headers: Headers3 [Headers] { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } " 1674766883670,"2023-01-26T21:01:23.670Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766883670,"2023-01-26T21:01:23.670Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body null " 1674766884036,"2023-01-26T21:01:24.036Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↓ GET https://mastodon.social/api/v1/media/109757521484843937 undefined " 1674766884036,"2023-01-26T21:01:24.036Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body {""id"":""109757521484843937"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/original/1b70435ae81d25e1.png"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/small/1b70435ae81d25e1.png"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04CIv~qa2D7^T$moyNFqg_Mj[IU-X-Wf*NF""} " 1674766884036,"2023-01-26T21:01:24.036Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO >>> attachment {""id"":""109757521484843937"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/original/1b70435ae81d25e1.png"",""previewUrl"":""https://files.mastodon.social/media_attachments/files/109/757/521/484/843/937/small/1b70435ae81d25e1.png"",""remoteUrl"":null,""previewRemoteUrl"":null,""textUrl"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04CIv~qa2D7^T$moyNFqg_Mj[IU-X-Wf*NF""} " 1674766884037,"2023-01-26T21:01:24.037Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↑ POST https://mastodon.social/api/v1/statuses undefined " 1674766884037,"2023-01-26T21:01:24.037Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body " 1674766884437,"2023-01-26T21:01:24.437Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO ↓ POST https://mastodon.social/api/v1/statuses undefined " 1674766884437,"2023-01-26T21:01:24.437Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 DEBUG body {""id"":""109757522529861623"",""created_at"":""2023-01-26T21:01:24.318Z"",""in_reply_to_id"":null,""in_reply_to_account_id"":null,""sensitive"":false,""spoiler_text"":"""",""visibility"":""public"",""language"":""es"",""uri"":""https://mastodon.social/users/AmbitoDolar/statuses/109757522529861623"",""url"":""https://mastodon.social/@AmbitoDolar/109757522529861623"",""replies_count"":0,""reblogs_count"":0,""favourites_count"":0,""edited_at"":null,""favourited"":false,""reblogged"":false,""muted"":false,""bookmarked"":false,""pinned"":false,""content"":""\u003cp\u003eCierre de jornada. OFICIAL: 183,74–192,74 (+0,24%), BLUE: 381,00–385,00 (+0,52%), TARJETA: 337,30 (+0,24%), QATAR: 385,48 (+0,24%), AHORRO: 318,02 (+0,24%), CCL: 369,46 (+0,87%), MEP: 352,22 (+0,06%), CRIPTO: 364,28 (+0,05%), MAYORISTA: 185,12–185,32 (+0,15%).\u003c/p\u003e"",""filtered"":[],""reblog"":null,""application"":{""name"":""IFTTT"",""website"":null},""account"":{""id"":""109689487628890135"",""username"":""AmbitoDolar"",""acct"":""AmbitoDolar"",""display_name"":""Ámbito DΓ³lar"",""locked"":false,""bot"":true,""discoverable"":false,""group"":false,""created_at"":""2023-01-14T00:00:00.000Z"",""note"":""\u003cp\u003eConocΓ© las distintas cotizaciones de la divisa norteamericana en la Argentina de manera simple, elegante y efectiva.\u003c/p\u003e"",""url"":""https://mastodon.social/@AmbitoDolar"",""avatar"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""header"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""header_static"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""followers_count"":3,""following_count"":0,""statuses_count"":94,""last_status_at"":""2023-01-26"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Sitio web"",""value"":""\u003ca href=\""https://www.ambito-dolar.app\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003eambito-dolar.app\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":""2023-01-18T14:01:47.452+00:00""}]},""media_attachments"":[],""mentions"":[],""tags"":[],""emojis"":[],""card"":null,""poll"":null} " 1674766884437,"2023-01-26T21:01:24.437Z 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 INFO Completed [{""status"":""ok"",""upload_id"":""1674766866890"",""media_id"":""3024486165180100612"",""duration"":12.029},{""status_id"":""109757522529861623"",""media_id"":""109757521484843937"",""duration"":18.689},{""event"":""send-social-notifications-with-photo"",""duration"":0.055}] " 1674766884441,"END RequestId: 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 " 1674766884441,"REPORT RequestId: 395ae2a2-7b4e-436f-be8c-bb9c58b1d138 Duration: 33973.91 ms Billed Duration: 33974 ms Memory Size: 1024 MB Max Memory Used: 683 MB Init Duration: 1150.37 ms " ```
outaTiME commented 1 year ago

A case from today, the upload was fine with no errors or retries, but the status was uploaded without the image, maybe it's definitely something from the mastodon.social server.

Click to see full log ``` timestamp,message 1675112451743,"START RequestId: ff139346-4be7-4f0b-b11b-7ddcb527f48e Version: $LATEST " 1675112451747,"2023-01-30T21:00:51.747Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Message received {""type"":""close"",""title"":""Cierre de jornada"",""caption"":""Cierre de jornada. OFICIAL: 185,07–194,07 (+0,52%), BLUE: 379,00–383,00 (-0,77%), TARJETA: 339,62 (+0,52%), QATAR: 388,14 (+0,52%), AHORRO: 320,22 (+0,52%), CCL: 371,81 (+0,10%), MEP: 353,93 (+0,32%), CRIPTO: 366,82 (+0,46%), MAYORISTA: 186,36–186,56 (+0,51%).""} " 1675112466673,"2023-01-30T21:01:06.672Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Screenshot completed {""url"":""https://xxx.cloudfront.net/?title=Cierre+de+jornada"",""target_url"":""https://i.imgur.com/7yJidVe.png"",""duration"":14.924} " 1675112466688,"2023-01-30T21:01:06.688Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↑ GET https://mastodon.social/api/v1/instance undefined " 1675112466688,"2023-01-30T21:01:06.688Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body null " 1675112466697,"2023-01-30T21:01:06.697Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Triggering event {""event"":""send-social-notifications-with-photo"",""payload"":{""value1"":""Cierre de jornada. OFICIAL: 185,07–194,07 (+0,52%), BLUE: 379,00–383,00 (-0,77%), TARJETA: 339,62 (+0,52%), QATAR: 388,14 (+0,52%), AHORRO: 320,22 (+0,52%), CCL: 371,81 (+0,10%), MEP: 353,93 (+0,32%), CRIPTO: 366,82 (+0,46%), MAYORISTA: 186,36–186,56 (+0,51%)."",""value2"":""https://i.imgur.com/7yJidVe.png""}} " 1675112466771,"2023-01-30T21:01:06.771Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Event triggered {""event"":""send-social-notifications-with-photo"",""duration"":0.073} " 1675112467336,"2023-01-30T21:01:07.336Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↓ GET https://mastodon.social/api/v1/instance undefined " 1675112467336,"2023-01-30T21:01:07.336Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body {""uri"":""mastodon.social"",""title"":""Mastodon"",""short_description"":""The original server operated by the Mastodon gGmbH non-profit"",""description"":"""",""email"":""staff@mastodon.social"",""version"":""4.0.2"",""urls"":{""streaming_api"":""wss://mastodon.social""},""stats"":{""user_count"":925198,""status_count"":49552388,""domain_count"":49827},""thumbnail"":""https://files.mastodon.social/site_uploads/files/000/000/001/@1x/57c12f441d083cde.png"",""languages"":[""en""],""registrations"":false,""approval_required"":false,""invites_enabled"":true,""configuration"":{""accounts"":{""max_featured_tags"":10},""statuses"":{""max_characters"":500,""max_media_attachments"":4,""characters_reserved_per_url"":23},""media_attachments"":{""supported_mime_types"":[""image/jpeg"",""image/png"",""image/gif"",""image/heic"",""image/heif"",""image/webp"",""image/avif"",""video/webm"",""video/mp4"",""video/quicktime"",""video/ogg"",""audio/wave"",""audio/wav"",""audio/x-wav"",""audio/x-pn-wave"",""audio/vnd.wave"",""audio/ogg"",""audio/vorbis"",""audio/mpeg"",""audio/mp3"",""audio/webm"",""audio/flac"",""audio/aac"",""audio/m4a"",""audio/x-m4a"",""audio/mp4"",""audio/3gpp"",""video/x-ms-asf""],""image_size_limit"":10485760,""image_matrix_limit"":16777216,""video_size_limit"":41943040,""video_frame_rate_limit"":60,""video_matrix_limit"":2304000},""polls"":{""max_options"":4,""max_characters_per_option"":50,""min_expiration"":300,""max_expiration"":2629746}},""contact_account"":{""id"":""1"",""username"":""Gargron"",""acct"":""Gargron"",""display_name"":""Eugen Rochko"",""locked"":false,""bot"":false,""discoverable"":true,""group"":false,""created_at"":""2016-03-16T00:00:00.000Z"",""note"":""\u003cp\u003eFounder, CEO and lead developer \u003cspan class=\""h-card\""\u003e\u003ca href=\""https://mastodon.social/@Mastodon\"" class=\""u-url mention\""\u003e@\u003cspan\u003eMastodon\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e, Germany.\u003c/p\u003e"",""url"":""https://mastodon.social/@Gargron"",""avatar"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg"",""header"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""header_static"":""https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg"",""followers_count"":291856,""following_count"":356,""statuses_count"":73133,""last_status_at"":""2023-01-30"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Patreon"",""value"":""\u003ca href=\""https://www.patreon.com/mastodon\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003epatreon.com/mastodon\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":null}]},""rules"":[{""id"":""1"",""text"":""Sexually explicit or violent media must be marked as sensitive when posting""},{""id"":""2"",""text"":""No racism, sexism, homophobia, transphobia, xenophobia, or casteism""},{""id"":""3"",""text"":""No incitement of violence or promotion of violent ideologies""},{""id"":""4"",""text"":""No harassment, dogpiling or doxxing of other users""},{""id"":""5"",""text"":""No content illegal in Germany""},{""id"":""7"",""text"":""Do not share intentionally false or misleading information""}]} " 1675112467338,"2023-01-30T21:01:07.338Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG Masto.js initialised MastoConfig { props: { url: 'https://mastodon.social', accessToken: 'xxx', logLevel: 'debug', version: SemVer2 { options: [Object], loose: true, includePrerelease: false, raw: '4.0.2', major: 4, minor: 0, patch: 2, prerelease: [], build: [], version: '4.0.2' }, streamingApiUrl: 'wss://mastodon.social' }, serializer: SerializerNativeImpl {} } " 1675112467341,"2023-01-30T21:01:07.341Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↑ POST https://mastodon.social/api/v2/media undefined " 1675112467342,"2023-01-30T21:01:07.342Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body FormData3 { _overheadLength: 160, _valueLength: 399227, _valuesToMeasure: [], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: false, _streams: [ '----------------------------973609877504171267611175\r ' + 'Content-Disposition: form-data; name=""file""; filename=""blob""\r ' + 'Content-Type: application/octet-stream\r ' + '\r ', , [Function: bound ] ], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------973609877504171267611175', _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1 } " 1675112467679,"2023-01-30T21:01:07.679Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Session restored " 1675112470570,"2023-01-30T21:01:10.569Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↓ POST https://mastodon.social/api/v2/media undefined " 1675112470570,"2023-01-30T21:01:10.570Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body {""id"":""109780170800960296"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/original/76cc5c657eb93eea.png"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/small/76cc5c657eb93eea.png"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04VH*?^n5Ha}0k=s:M{u;_Mn+D%pc=4g2J#""} " 1675112471572,"2023-01-30T21:01:11.572Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↑ GET https://mastodon.social/api/v1/media/109780170800960296 undefined " 1675112471573,"2023-01-30T21:01:11.572Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body null " 1675112472070,"2023-01-30T21:01:12.070Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↓ GET https://mastodon.social/api/v1/media/109780170800960296 undefined " 1675112472070,"2023-01-30T21:01:12.070Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body {""id"":""109780170800960296"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/original/76cc5c657eb93eea.png"",""preview_url"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/small/76cc5c657eb93eea.png"",""remote_url"":null,""preview_remote_url"":null,""text_url"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04VH*?^n5Ha}0k=s:M{u;_Mn+D%pc=4g2J#""} " 1675112472070,"2023-01-30T21:01:12.070Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO >>> attachment {""id"":""109780170800960296"",""type"":""image"",""url"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/original/76cc5c657eb93eea.png"",""previewUrl"":""https://files.mastodon.social/media_attachments/files/109/780/170/800/960/296/small/76cc5c657eb93eea.png"",""remoteUrl"":null,""previewRemoteUrl"":null,""textUrl"":null,""meta"":{""original"":{""width"":1080,""height"":1350,""size"":""1080x1350"",""aspect"":0.8},""small"":{""width"":429,""height"":536,""size"":""429x536"",""aspect"":0.8003731343283582}},""description"":null,""blurhash"":""U04VH*?^n5Ha}0k=s:M{u;_Mn+D%pc=4g2J#""} " 1675112472071,"2023-01-30T21:01:12.071Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↑ POST https://mastodon.social/api/v1/statuses undefined " 1675112472071,"2023-01-30T21:01:12.071Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body " 1675112472551,"2023-01-30T21:01:12.551Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO ↓ POST https://mastodon.social/api/v1/statuses undefined " 1675112472551,"2023-01-30T21:01:12.551Z ff139346-4be7-4f0b-b11b-7ddcb527f48e DEBUG body {""id"":""109780170991026824"",""created_at"":""2023-01-30T21:01:12.402Z"",""in_reply_to_id"":null,""in_reply_to_account_id"":null,""sensitive"":false,""spoiler_text"":"""",""visibility"":""public"",""language"":""es"",""uri"":""https://mastodon.social/users/AmbitoDolar/statuses/109780170991026824"",""url"":""https://mastodon.social/@AmbitoDolar/109780170991026824"",""replies_count"":0,""reblogs_count"":0,""favourites_count"":0,""edited_at"":null,""favourited"":false,""reblogged"":false,""muted"":false,""bookmarked"":false,""pinned"":false,""content"":""\u003cp\u003eCierre de jornada. OFICIAL: 185,07–194,07 (+0,52%), BLUE: 379,00–383,00 (-0,77%), TARJETA: 339,62 (+0,52%), QATAR: 388,14 (+0,52%), AHORRO: 320,22 (+0,52%), CCL: 371,81 (+0,10%), MEP: 353,93 (+0,32%), CRIPTO: 366,82 (+0,46%), MAYORISTA: 186,36–186,56 (+0,51%).\u003c/p\u003e"",""filtered"":[],""reblog"":null,""application"":{""name"":""IFTTT"",""website"":null},""account"":{""id"":""109689487628890135"",""username"":""AmbitoDolar"",""acct"":""AmbitoDolar"",""display_name"":""Ámbito DΓ³lar"",""locked"":false,""bot"":true,""discoverable"":false,""group"":false,""created_at"":""2023-01-14T00:00:00.000Z"",""note"":""\u003cp\u003eConocΓ© las distintas cotizaciones de la divisa norteamericana en la Argentina de manera simple, elegante y efectiva.\u003c/p\u003e"",""url"":""https://mastodon.social/@AmbitoDolar"",""avatar"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""avatar_static"":""https://files.mastodon.social/accounts/avatars/109/689/487/628/890/135/original/64862b931bceb44a.png"",""header"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""header_static"":""https://files.mastodon.social/accounts/headers/109/689/487/628/890/135/original/5d582d8dec98f716.png"",""followers_count"":3,""following_count"":0,""statuses_count"":117,""last_status_at"":""2023-01-30"",""noindex"":false,""emojis"":[],""fields"":[{""name"":""Sitio web"",""value"":""\u003ca href=\""https://www.ambito-dolar.app\"" target=\""_blank\"" rel=\""nofollow noopener noreferrer me\""\u003e\u003cspan class=\""invisible\""\u003ehttps://www.\u003c/span\u003e\u003cspan class=\""\""\u003eambito-dolar.app\u003c/span\u003e\u003cspan class=\""invisible\""\u003e\u003c/span\u003e\u003c/a\u003e"",""verified_at"":""2023-01-18T14:01:47.452+00:00""}]},""media_attachments"":[],""mentions"":[],""tags"":[],""emojis"":[],""card"":null,""poll"":null} " 1675112478389,"2023-01-30T21:01:18.389Z ff139346-4be7-4f0b-b11b-7ddcb527f48e INFO Completed [{""status"":""ok"",""upload_id"":""1675112467679"",""media_id"":""3027385274086091141"",""duration"":11.716},{""status_id"":""109780170991026824"",""media_id"":""109780170800960296"",""duration"":5.867},{""event"":""send-social-notifications-with-photo"",""duration"":0.073}] " 1675112478394,"END RequestId: ff139346-4be7-4f0b-b11b-7ddcb527f48e " 1675112478394,"REPORT RequestId: ff139346-4be7-4f0b-b11b-7ddcb527f48e Duration: 26650.63 ms Billed Duration: 26651 ms Memory Size: 1024 MB Max Memory Used: 691 MB Init Duration: 1161.29 ms " ```

Analyzing a case with errors and retries from last Friday, the status went up without an image, but today looking at my user's timeline I see that the image appears (when days ago it didn't), I still don't understand clearly what it is It does happen, but again it would appear to be something from the mastodon.social server.

outaTiME commented 1 year ago

Hi there, I wanted to tell you that since a long time ago the image upload is working consistently, it seems that it was something of mastodon server side. No need to keep this issue open, greetings, and thanks for the support 🫢