Skip to content

Issue with initial set up - error saying failed to connect to api #2625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iainwallacebms opened this issue Apr 17, 2025 · 5 comments
Open
Assignees
Milestone

Comments

@iainwallacebms
Copy link

Hi,

I get an error when trying to create a new deployment (i.e. the first step) when using the latest publisher extension with the latest version of Positron on my companies Mac.

"Unable to connect with a failed api response"

Image

Any suggestions to trouble shoot greatly appreciated.

Thanks

Iain

@sagerb sagerb self-assigned this Apr 18, 2025
@sagerb
Copy link
Collaborator

sagerb commented Apr 18, 2025

Hi @iainwallacebms.

Can you provide the log text from the output pane after selecting Posit Publisher? This might help us narrow down the problem you are encountering.

While it shouldn't be a problem, do you know what chip architecture your Mac is? (We run this extension regularly on both Apple and Intel silicon Macs.)

@iainwallacebms
Copy link
Author

Hi,

It is an M1 Mac. Below are the screenshots of the output pane for the window and Posit publisher after pressing the add new deployment. Is there somewhere that I need to set up a connection to our Connect server before I start? https://report.pri.bms.com/connect/

Thanks

Iain

Image Image

@sagerb
Copy link
Collaborator

sagerb commented Apr 23, 2025

This issue is the same as #2609, although I won't be closing as duplicate.

@iainwallacebms
Copy link
Author

Thanks - I tried uninstall and reinstalling it as per the other issue, but still have the same issue.

@sagerb
Copy link
Collaborator

sagerb commented Apr 24, 2025

Thank you for trying that @iainwallacebms.

Can you please grab the URL address listed in the output pane and try the following command at a terminal (replacing the 127.0.0.1:61079 with that address)?

curl http://127.0.0.1:61079/api/credentials 

It should be an empty array if I understand your installation status.

Here's my sample output, which shows what I see with credentials

 > curl http://127.0.0.1:61079/api/credentials 
[{"guid":"46e6994e-53be-4f2e-ac30-2cf47e5419c2","name":"local","url":"https://connect.localtest.me/rsc/dev-password","apiKey":"xxxxxxxxxxxxxxxxxxxxxxx"}]

If that doesn't work, could you try replacing the 127.0.0.1 with localhost, and retrying?

Thank you for your help in diagnosing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants