Is the Twitter share API working?

is the twitter API still working? I get the an error with the following logs when trying to upload a video (the video itself is 480x852, 10fps):

2019-08-29 11:20:12,160 (INFO) [lnknb ID 49] TwitterService - Twitter share request for file: C:\Users\Daedin\Videos\Overwolf\Firestone\Hearthstone\Hearthstone_08-29-2019_11-14-55-981\Hearthstone 08-29-2019 11-19-09-041.mp4
2019-08-29 11:20:12,981 (INFO) [UI] NotificationsManager - Showing Notification: Notification Type: ShareUploadStartedNotification | CreationDate: 08/29/2019 11:20:12 | ServiceName: TwitterService
2019-08-29 11:20:22,398 (INFO) [UI] NotificationViewModel - Notification Timeout: Notification Type: ShareUploadStartedNotification | CreationDate: 08/29/2019 11:20:12 | ServiceName: TwitterService
2019-08-29 11:20:22,771 (INFO) [UI] NotificationsManager - Notification Closing: Notification Type: ShareUploadStartedNotification | CreationDate: 08/29/2019 11:20:12 | ServiceName: TwitterService
2019-08-29 11:20:22,773 (INFO) [UI] WindowBase - Hiding window 'Notifications Window' (WindowNotification)
2019-08-29 11:20:47,216 (INFO) [OverlayService ID 17] Service - replay buffer fully armed
2019-08-29 11:20:47,219 (INFO) [OverlayService ID 17] Service - replay buffer fully armed - but not started!, mark as start
2019-08-29 11:21:07,829 (INFO) [UI] ActionBrowseToUriBase`1 - ActionBrowseToUri:http://localhost:54284/devtools/inspector.html?ws=localhost:54284/devtools/page/1C77939E39F0F979AFD91743A26EC8E4
2019-08-29 11:21:07,830 (INFO) [UI] BrowserManager - Opening Browser Window
2019-08-29 11:21:19,641 (ERROR) [43] <261.66MB> ShareHandlerBase - Failed to upload video to Twitter: C:\Users\Daedin\Videos\Overwolf\Firestone\Hearthstone\Hearthstone_08-29-2019_11-14-55-981\Hearthstone 08-29-2019 11-19-09-041.mp4
2019-08-29 11:21:19,643 (INFO) [UI] NotificationsManager - Showing Notification: Notification Type: ShareUploadErrorNotification | CreationDate: 08/29/2019 11:21:14 | ServiceName: TwitterService
2019-08-29 11:21:25,047 (INFO) [UI] NotificationViewModel - Notification Timeout: Notification Type: ShareUploadErrorNotification | CreationDate: 08/29/2019 11:21:14 | ServiceName: TwitterService
2019-08-29 11:21:25,422 (INFO) [UI] NotificationsManager - Notification Closing: Notification Type: ShareUploadErrorNotification | CreationDate: 08/29/2019 11:21:14 | ServiceName: TwitterService
2019-08-29 11:21:25,424 (INFO) [UI] WindowBase - Hiding window 'Notifications Window' (WindowNotification)

PS: there is a link to add an image, but not to attach a zip file. How do I do that?

@sebastientromp it should work, but we will check it. The other functions of this API is working as expected? performuserlogin() etc?

Regarding the upload - I now allowed to upload zip as well.

So here are the logs :slight_smile:

All the other features are working fine, it’s just the upload that gets rejected.
I remember that at some point Twitter would reject uploads of high-quality videos, or of videos that were too big, but in this case the video is quite small and low res.

Log.zip (437.5 KB)

@sebastientromp thanks. I sent the logs to our R&D for investigation. We will have an update in a few days.

Thanks.

Hi @sebastientromp . we can’t reproduce the error.
We tried uploading several videos, different resolutions/trimming etc., all worked.
and the logs are sadly kind of useless in this case.

could you please send me the vid that failed to upload?
and also the call to the API that you made to share.

Thanks

So it’s good to know it’s an issue on my side then :slight_smile:

The video is here: https://www.dropbox.com/s/nxdj6u3qvuna7xq/Hearthstone%2009-02-2019%2010-26-39-414.mp4?dl=0

And the call made to the OW API is

const shareParam = {
	file: filePathOnDisk, // "C:\Users\Daedin\Videos\Overwolf\Firestone\Hearthstone\Hearthstone_09-02-2019_10-26-14-240\Hearthstone 09-02-2019 10-26-39-414.mp4"
	message: message, // "One more #hearthstone #achievement unlocked! | Giant Rat | Captured by Firestone"
};
overwolf.social.twitter.share(shareParam, (res, error) => {
	console.log('uploaded file to twitter', res, error); // Returns "success", but the video is never uploaded, and I get a popup error that tells me the upload failed (see the above logs)
	resolve(res);
});

@eransharv Just pinging you to be sure you saw the reply :slight_smile:

@sebastientromp hey, following our conversation, please let me know when you have an app version with twitter sharing enabled, so more tests can be performed, as the file uploads without issue in our tests.

1 Like

@sebastientromp is there any update? What is the status of this issue? can we close it?

Yes, it’s working. Sorry I forgot to update this issue, you can close it now

1 Like