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.
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:
The following command works correctly:
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.