cloud-gov / cf-service-connect

Cloud Foundry CLI Service Connection Plugin
Other
18 stars 6 forks source link

failed to connect to elephantsql #51

Open drnic opened 5 years ago

drnic commented 5 years ago

This error exists on master + release v1.1.0.

cf login -a https://api.run.pivotal.io --sso
cf create-service elephantsql turtle my-psql
cf bind-service my-app my-psql 
cf restart my-app

cf connect-to-service my-app my-psql

This errors with output:

Finding the service instance details...
Setting up SSH tunnel...
FAILED
Incorrect Usage: Unable to parse local forwarding argument: "52858::"

The VCAP_SERVICES looks like:

{
 "VCAP_SERVICES": {
  "elephantsql": [
   {
    "binding_name": null,
    "credentials": {
     "max_conns": "5",
     "uri": "postgres://user:pass@isilo.db.elephantsql.com:5432/dbname"
    },
...

I'll investigate more later.