Skip to content

xurl media upload without flags returns a media ID but the upload actually fails #76

Description

@Loong1996

The following command appears to succeed — it returns a media ID — but checking its status shows the upload actually failed, which causes every subsequent tweet attempt to fail:

xurl media upload /tmp/tycoon_tweet.jpg

The following command works correctly:

xurl media upload --file /tmp/tycoon_tweet.jpg --category tweet_image --media-type image/jpeg

Why does the first form silently fail? If the arguments are insufficient, it should return an error instead of a media ID that can't actually be used.

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