me-box / databox

Databox container manager and dashboard server
MIT License
94 stars 25 forks source link

driver-twitter set up consumer key #282

Open tsh-box opened 5 years ago

tsh-box commented 5 years ago

hi, I have built databox v0.5.0 . I installed the driver-twitter and set up the consumer key and consumer secrect key . And then the following errors occured when login button click.

Error getting OAuth request token : {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"api.twitter.com","host":"api.twitter.com","port":443}

Toshbrown commented 5 years ago

Hum looks like a DNS problem,

Are there any errors in the core-network logs relating to api.twitter.com?

Or any errors in the container-manager logs to do with ExternalWhitelist permissions?

tsh-box commented 5 years ago

This is the databox conolse logs ↓

container-manager : Z2018-09-20T04:18:32.241401814Z [INFO]2018/09/20 04:18:32 Installing app-twitter-sentiment container-manager : x2018-09-20T04:18:50.859235569Z [INFO]2018/09/20 04:18:50 Pulling Image databoxsystems/app-twitter-sentiment-amd64:0.5.0 container-manager : S2018-09-20T04:18:51.834517409Z makeArbiterPostRequest /token Error:: unauthorized 2018-09-20T04:18:51.834544610container-manager : Z [WARNING]2018/09/20 04:18:51 [populateDataSources] GetStoreDataSourceCatalogue tcp://app-twitter-sentiment-core-store:5555 500container-manager : : container-manager : }2018-09-20T04:19:01.234408051Z [INFO]2018/09/20 04:19:01 Done pulling Image databoxsystems/app-twitter-sentiment-amd64:0container-manager : .5.0 container-manager : C2018-09-20T04:19:01.302454965Z serviceCreateResponse.Warnings:: [] container-manager : f2018-09-20T04:19:01.353741913Z [INFO]2018/09/20 04:19:01 Successfully installed app-twitter-sentiment

container-manager : カ2018-09-20T08:04:36.493375523Z [INFO]2018/09/20 08:04:36 http: TLS handshake error from 218.75.40.147:52244: read tcp 17container-manager : 2.18.0.4:443->218.75.40.147:52244: read: connection timed out

tsh-box commented 5 years ago

Error getting OAuth request token : {"statusCode":403,"data":"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"}

Toshbrown commented 5 years ago

What the url you are using to acsess the UI?

This needs to be added to the twitter apps settings.

tsh-box commented 5 years ago

In https://13.78.33.154/core-ui/ui/view?ui=driver-twitter , The error occured when I inserted the cosumer key and secrect key and pressed login button.

tsh-box commented 5 years ago

I seen the following error when executed the databox start command .

container-manager : makeArbiterPostRequest /token Error:: unauthorized container-manager : [WARNING]2018/09/25 06:57:45 [populateDataSources] GetStoreDataSourceCatalogue tcp://driver-sensingkit-core-store:5555 500:

Toshbrown commented 5 years ago

I don't think that is connected,

on apps.twitter.com you need to set the callback URL, from what stated above it should be: ''' https://13.78.33.154/driver-twitter/ui/oauth '''

tsh-box commented 5 years ago

when I accessed the url https://13.78.33.154/driver-twitter/ui/oauth,the following message are shown

Error getting OAuth access token : [object Object][undefined][undefined][undefined]

Toshbrown commented 5 years ago

You don't access that URL, you should be redirected there after the OAuth process has been completed.

Toshbrown commented 5 years ago

@ktg I've just tested this and get the same error as @tsh-box after an OAuth redirect. There is an additional error in the driver logs:

{statusCode: 401, data:"Reverse auth credentials are invalid"}

I've tried regenerating my keys but still get the same error. Can you take a look, please?