" /> Unable to Fetch Twitter Data on Cloud - Genesys CTI User Forum

Author Topic: Unable to Fetch Twitter Data on Cloud  (Read 2979 times)

Offline blacksnake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Unable to Fetch Twitter Data on Cloud
« on: February 22, 2018, 10:46:33 AM »
Advertisement
I have installed Social Messaging Server with Twitter Cloud Connector which  version is 9.0.000.07.
I am getting error as shown below.
Could you please help me ?

LOG:
2018-02-22T12:21:41.481 Dbg 42257 (channel-twitter-1).(Pltfm.Cloud Data Fetcher.processData): Processing data item with id: 5a8c13b1afc6fa00240471e8:5146088824555212725
2018-02-22T12:21:41.487 Trc 44001 (channel-twitter-1).(Pltfm.MsgProcessor.procStatus): {sender_created_at=Mon May 04 14:45:33 +0000 2015, sender_name=Gilles Talbot, in_reply_to_status_id=null, sender_friends_count=9.0, id=966618938938482689, media=[{expanded_url=https://twitter.com/GillesGen/status/966618938938482689/photo/1, display_url=pic.twitter.com/WpqggkNECe, url=https://t.co/WpqggkNECe, media_url_https=https://pbs.twimg.com/media/DWoezSGX0AA9Qci.jpg, id_str=966618936405118976, sizes={large={h=327.0, w=580.0, resize=fit}, small={h=327.0, w=580.0, resize=fit}, medium={h=327.0, w=580.0, resize=fit}, thumb={h=150.0, w=150.0, resize=crop}}, indices=[192.0, 215.0], type=photo, id=9.6661893640511898E17, media_url=http://pbs.twimg.com/media/DWoezSGX0AA9Qci.jpg}], content=.@Genesys #PureCloud solution can provide a 3-year 571% ROI and payback in less than 3 months, says commissioned TEI study from @Forrester Consulting. Read study now:  https://t.co/4m8tBCq2W8 https://t.co/WpqggkNECe, sender_location=null, in_reply_to_user_id=null, post_language=en, in_reply_to_screen_name=null, is_retweet=false, post_source=<a href="http://www.everyonesocial.com" rel="nofollow">EveryoneSocial</a>, sender_id=3185349445, sender_description=null, sender_screen_name=GillesGen, sender_profile_image=http://pbs.twimg.com/profile_images/778957910118465536/YCzl0enw_normal.jpg, sender_timezone=Pacific Time (US & Canada), sender_follower_count=7.0, sender_status_count=301.0, sender_utc_offset=-28800.0, message_type=public, created_at=Thu, 22 Feb 2018 10:21:28 +0000, sender_language=fr}
2018-02-22T12:21:41.496 Trc 42254 (channel-twitter-1).(Pltfm.MsgProcessor.skipOwnMsg): Received record from Id=3185349445
2018-02-22T12:21:41.589 Trc 42254 (channel-twitter-1).(Pltfm.TwitterCloudPlatform.getChannelUserId): [b]Got channel user: null[/b]
2018-02-22T12:21:41.591 Std 42401 (channel-twitter-1).(Pltfm.Cloud Data Fetcher.processData):[b] error... Failed to process item. Got error: [/b]
*** Start of Trace ***
java.lang.NullPointerException
at com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.skipOwnMsg(TwitterCloudDataInterface.java:409)
at com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.procStatus(TwitterCloudDataInterface.java:230)
at com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.processGSAEntity(TwitterCloudDataInterface.java:95)
at com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.processItem(CloudDataMonitor.java:177)
at com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.processBatch(CloudDataMonitor.java:196)
at com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.run(CloudDataMonitor.java:295)
*** End of Trace *** StackTrace is: com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.skipOwnMsg(TwitterCloudDataInterface.java:409)
com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.procStatus(TwitterCloudDataInterface.java:230)
com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDataInterface.processGSAEntity(TwitterCloudDataInterface.java:95)
com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.processItem(CloudDataMonitor.java:177)
com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.processBatch(CloudDataMonitor.java:196)
com.genesyslab.mcr.smserver.channel.common.CloudDataMonitor.run(CloudDataMonitor.java:295)

2018-02-22T12:21:41.676 Trc 42254 (channel-twitter-1).(Pltfm.CommonCloudDataInterface.confirmBatch): Confirming ids: [] got result: com.genesyslab.gsa.core.RemoteResponse@4fdf4129
2018-02-22T12:21:41.765 Trc 42254 (channel-twitter-1).(Pltfm.CommonCloudDataInterface.confirmBatchInvalid): Confirming invalid posts ids: [5a8c13b1afc6fa00240471e8:5146088824555212725] got result: com.genesyslab.gsa.core.RemoteResponse@392a0712
2018-02-22T12:21:51.765 Std 42251 CloudDriverParams.checkConfigChanges result: false
2018-02-22T12:21:51.765 Trc 42254 (channel-twitter-1).(Pltfm.Cloud Data Fetcher.main loop): Starting a new fetch iteration.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Unable to Fetch Twitter Data on Cloud
« Reply #1 on: February 22, 2018, 12:23:36 PM »
Post your social messaging config.
You have created the channels, right?


Enviado de meu E6633 usando Tapatalk


Offline blacksnake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Unable to Fetch Twitter Data on Cloud
« Reply #2 on: February 22, 2018, 01:05:25 PM »
Hi,
I have created channel.Social messaging config is shown below;

[channel-any_name]
driver-classname=com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDriver

[channel-twitter-1]
driver-classname=com.genesyslab.mcr.smserver.channel.twitter.cloud.TwitterCloudDriver
fetch-image=true
gsa-account-name=CCR
gsa-api-key=61110f36228a133635565e39deb9e0b2407fc3ad
gsa-batch-limit=200
gsa-batch-reserve-time=60
gsa-channel-id=5a8c13b1afc6fa00240471e8
gsa-channel-name=@genesys_mehmet - Twitter Service
gsa-url-base=socialanalytics.genesyscloud.com/api/v2.0
gsa-user-name=*******
gsa-user-password=*******
inbound-route=1:twitter_queue
itx-resubmit-attempts=3
itx-resubmit-delay=30
itx-submit-timeout=10
reconnection-timeout=180
sampling-period=10
x-debug-mode=true
x-inbound-media=twitter
x-source-nick-name=Twitter1
x-submit-own-all=false

[channel-twitter-1-monitor]
itx-resubmit-attempts=3
itx-submit-timeout=10

[endpoints:1]
twitter_queue=Twitter Inbound Queue

[log]
all=C:\LOGS\Twitter\Twitter
buffering=false
expire=5
messagefile=dmserver.lms
segment=5000
standard=
time-format=ISO8601
trace=
verbose=all

[log-filter]
default-filter-type=copy
string-max-print-size=128

[log-filter-data]
sample_name=hide

[settings]
esp-proc-timeout=60
hide-attached-data=false
session-chat-request-timeout=40
session-max-number=10
session-shutdown-timeout=180
subject-size=40
workspace-location=C:\GCTI\Workspace Desktop Edition\


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Unable to Fetch Twitter Data on Cloud
« Reply #3 on: February 22, 2018, 03:32:40 PM »
Does your Tweeter account has the Profile complete? Seems the description is blank.

Offline blacksnake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Unable to Fetch Twitter Data on Cloud
« Reply #4 on: February 23, 2018, 11:37:51 AM »
Hi,
Yes i have created profile on socal analytics.I have set  "gsa-user-name"  and "gsa-user-password " in application but i just show you ******* instead of real values .
Regards.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Unable to Fetch Twitter Data on Cloud
« Reply #5 on: February 23, 2018, 11:39:01 AM »
No no, at your tweeter account, at tweeter.com


Enviado de meu E6633 usando Tapatalk


Offline blacksnake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Unable to Fetch Twitter Data on Cloud
« Reply #6 on: March 01, 2018, 01:53:20 PM »
Hi,
I have resolved the problem.There was a configuration error on socialanalytics and now it's working.
Thanks for help.

Offline errami

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Unable to Fetch Twitter Data on Cloud
« Reply #7 on: April 18, 2018, 09:47:47 AM »
Hi,
I have the same issue. Could you please tell me what was the misconfig on GSA ? May be this will help.
Thank you.