cloudfoundry-community / firehose-to-syslog

Send firehose events from Cloud Foundry to syslog.
MIT License
44 stars 58 forks source link

Connect to Pivotal Webservices #210

Closed masalinas closed 5 years ago

masalinas commented 5 years ago

I try to connect firehorse-to-syslog to my PSW account: ./firehose-to-syslog --api-endpoint='https://api.run.pivotal.io' --client-id=<CLIENT_ID> --client-secret=<SECRET_ID> --skip-ssl-validation --debug

Where: client-id is the email account used to login in PSW secret_id: the password opf my email account to login in PWS

I put all atributes with simple commas (' charachers) example: --client-id='training@thk.org' --client-secret='myPassword'

but I always received this:

[2018-11-21 13:17:11.199772486 +0100 CET m=+0.009648602] Starting firehose-to-syslog 0.0.0 
wss://doppler.run.pivotal.io:443
[2018-11-21 13:17:11.768804442 +0100 CET m=+0.578680532] Using wss://doppler.run.pivotal.io:443 as doppler endpoint
[2018-11-21 13:17:11.769007592 +0100 CET m=+0.578883527] Pre-filling cache...
[2018-11-21 13:17:12.312329221 +0100 CET m=+1.122205144] Exception occurred! Message: Error pre-filling cache:  Details: Get https://api.run.pivotal.io/v2/apps?results-per-page=100: oauth2: cannot fetch token: 401 Unauthorized
Response: {"error":"unauthorized","error_description":"Bad credentials"}
shinji62 commented 5 years ago

I don't think you can. your user need the doppler.firehose scope.