Unable to connect to a branch using access token #293
Replies: 3 comments 1 reply
-
Hi @edgrosvenor! Thanks for reaching out about this situation! Would you be able to take this over to https://support.planetscale.com/ when you have a moment since there are likely a few extra details about the PHP code itself I might want to take a closer look at and try running some tests on with the Thank you! |
Beta Was this translation helpful? Give feedback.
-
@orware I will do that. I'm in Switzerland so my day is done, but I'll head over there in the morning and get started. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@orware This is fun. I changed absolutely nothing in my code and it works this morning. The command times out in my PHP script for whatever reason, but I can see in the audit log that the connection was successful. What I was hoping to do in the PHP script is request json with the Either way, my initial bug report seems to be invalid, so I'll see if I can get past my current issue and if not I'll open a ticket. |
Beta Was this translation helpful? Give feedback.
-
In my PHP app with the access token environment variables set up, I am able to create a new branch in my app like so:
pscale branch create $database $branch --org $org
This indicates to me that the environment variables are set up correctly and that my general usage of the cli is correct. However, when I attempt to connect to the newly created branch using this
pscale connect $database $branch --org $org
I get an error that
Error: database $database and branch $branch does not exist in organization $org
When I run the same command in a separate terminal that is authenticated using
pscale auth login
I am greeted with a successful connection.I believe the token has the required permissions.
read_deploy_request, read_comment, read_branch, delete_branch_password, delete_branch, create_deploy_request, create_comment, create_branch, connect_branch, approve_deploy_request
Beta Was this translation helpful? Give feedback.
All reactions