langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.97k stars 131 forks source link

Authentication stuck for ever #39

Closed ajasingh closed 2 months ago

ajasingh commented 3 months ago

I have install langgraph studio but im never able to get past the login screen even after sucessfully login to the langsmith the UI still shows Login to Langsmith ![Uploading Screenshot 2024-08-04 at 3.50.26 PM.png…]()

hwchase17 commented 3 months ago

@ajasingh screenshot is not loading

rvndbalaji commented 3 months ago

@hwchase17 I have the same issue (Unable to post screenshot due to company restrictions)

But I can describe it

Steps

  1. Open LangGraph Studio on Mac

  2. Click Login to LangSmith button and this takes you to the langsmith site

  3. The authentication succeeds, and on hovering "Open Langgraph Studio", I see the URL to be langgraph:///token?backendUrl=https%3A%2F%2Fapi.smith.langchain.com&accessToken=....&workspaceId=...&organizationId=....

  4. But nothing happens on clicking this button. The langgraph studio app still shows the login to langsmith button, but the web browser does not seem to redirect and perform the actual login (The URL call back does not seem to work)

  5. I did notice that on clicking the button within the browser, the browser loses focus and the app gains focus (window becomes active) . But nothing happens after that

Notes

I've been facing this issue since the first version on a Macbook Pro (M1 chip)

Recommendations :

  1. Allow the user to paste the token into the app if the above redirection fails
  2. Integrate the langsmith login within the app itself (in-app browser?)
  3. Allow an API key to be created on the langsmith app and have it be used by the langgraph studio (We already allow api key creations for langsmith)
dqbd commented 3 months ago

Hello @rvndbalaji and @ajasingh! Is the application itself moved into the Application folder?

codemato commented 3 months ago

same issue with me.. since i dont have root access .. i had to move application to custom Applications folder $HOME/Applications

rvndbalaji commented 3 months ago

@dqbd

Hello @rvndbalaji and @ajasingh! Is the application itself moved into the Application folder?

yes, I moved it to the applications folder (using the root username and password when prompted) But i myself dont have root access, though i have the creds for root - which I simply entered when installing

rvndbalaji commented 3 months ago

@dqbd @hwchase17 Any update on this?

Im unable to even start using LangGraph Studio :\ I really wanna try it out

dqbd commented 2 months ago

Added an option to paste the deeplink inside the auth pane in 0.0.20! Just copy the URL of the link and then inside LangGraph Studio hit Cmd-V

gd1m3y commented 2 months ago

Hi this time i am facing a new bug

image

uploaded the sample image any suggestions to fix this ? @dqbd

atulmkamble commented 2 months ago

Hello @dqbd,

LangGraph Studio Version: 0.0.21 (0.0.21) MacOS: Sonoma 14.6.1

I am facing the exact issue mentioned by @rvndbalaji. I have attached a snapshot of the same. image

I have tried pasting the solution at the UI login window, but that doesn't work.

Added an option to paste the deeplink inside the auth pane in 0.0.20! Just copy the URL of the link and then inside LangGraph Studio hit Cmd-V

Could you please help me with it?

atulmkamble commented 2 months ago

Hi this time i am facing a new bug

I am getting the same error after pasting the authentication code in the app. Were you able to fix it?

image

dqbd commented 2 months ago

Hello @atulmkamble @gd1m3y We've pushed a new version 0.0.22, which should properly inherit the system proxy / VPN settings. Could you check if that solves your issue?

atulmkamble commented 2 months ago

Hello @dqbd, It works like a charm. Thank You!