Skip to content

Not possible to publish a post with a photo until attached image URL returns successful response #90

@paulrobertlloyd

Description

@paulrobertlloyd

Micro.blog iOS 3.3 (319)

  1. Open new post screen
  2. Click photo icon
  3. Select photo
  4. Photo shown to be uploading, with progress bar above thumbnail
  5. One photo uploaded, thumbnail turns white
  6. Enter text
  7. Click ‘Post’
  8. Error message: ‘Something went wrong. Please try again later’
  9. Wait for photo to appear at location returned by media endpoint
  10. Thumbnail shows photo again.
  11. Click ‘Post’ again
  12. Post is published

(…or at least it was the first time. Second time I tried this, I kept getting the same error message, but turns out each time I clicked ‘Post’, another version of the post was saved to my database. This might be a combination of bugs in both Micro.blog and Indiekit!)

Background

When a photo is uploaded to Indiekit, it returns a URL for where the image will be published. As that typically involves committing the file to a git repo, and then a service like Netlify publishing the file to a public URL, it can take ~1 minute for the file to appear at the location specified. I believe my media endpoint returns a 202 Accepted response alongside the Location header, I can’t remember.

Either way, I’m not sure if Micro.blog should care if an image location returns 404 initially… or at least for the case of third-party Micropub endpoints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions