You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear,
I have the website which user can share some own image with text to Twitter by using Twitter OAuth API.
(Ruby:2.3.6,Rails: 5.1.4,‘omniauth-twitter’ gem,Amazon Linux AMI)
and, when User is trying to tweet with an image,
(using this)
client.update_with_media(
comment,
image_path
)
sometimes the error occurs with following messages
[DEPRECATED] :mime_type option deprecated, use :content_type
Twitter::Error::Unauthorized (Invalid or expired token.):
Completed 500 Internal Server Error
Then, I searched and I found out that If the image is smaller than 10 kb, image path is recognized as Twitter as a character string.
So I wrote monkey patch like this.
Dear,
I have the website which user can share some own image with text to Twitter by using Twitter OAuth API.
(Ruby:2.3.6,Rails: 5.1.4,‘omniauth-twitter’ gem,Amazon Linux AMI)
and, when User is trying to tweet with an image,
(using this)
sometimes the error occurs with following messages
Then, I searched and I found out that If the image is smaller than 10 kb, image path is recognized as Twitter as a character string.
So I wrote monkey patch like this.
However, it doesn't work well.Sometimes errors occur yet.
Could you please help??
Thanks
The text was updated successfully, but these errors were encountered: