Skip to content

API Errors swallowed #3

Description

@gus4rs

Twitter accepts video in 3 shapes: 1280x720 (landscape), 720x1280 (portrait), 720x720 (square)

https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/media-best-practices

When trying to Tweet a video which does not comply with those dimensions, Twitter may return error status 324 meaning "The validation of media ids failed", or it may not return any code and a detail messages saying "Your media IDs are invalid"

critter hides this error and simply returns the string unknown when posting the tweet. It should return all error field according to Twitter API, so the user can decide how to handle them on a case by case basis.

See https://developer.twitter.com/en/support/twitter-api/error-troubleshooting

Use this video to test:

disform.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions