-
Notifications
You must be signed in to change notification settings - Fork 74
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
Help proxy for R errors #3753
Comments
Seems like this is likely a problem with Windows only, as I cannot reproduce this on a Mac. Can you go to "Output" and see if there are related errors, such as in the "Extension Host" output channel? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Can you run the command "Developer: Toggle Developer Tools" and take a look for logs related to Help? For me, I see this; Which includes:
|
Filtering for Filtering for And there was also that log (might be temp address? it changed): Let me know if there is any additional info needed for you guys :) |
Ok. I played with it with screen sharing and at one point something worked, but far less responsive than in rstudio.. example.mp4 |
@iamYannC, If you have the time, could you try this with python? E.g. switch to a python interpreter and run a help-generating command like |
Python's help works. takes a sec to load, but help page is loaded. tried with btw, Julia's docu works but it only prints the help results in the consule, it doesnt open the documentation in the designated Julia extension area. But let's stick with R :P |
Okay cool -- thanks for checking! This means something is going wrong in the R language pack end. @DavisVaughan or @lionel- does that seem like a correct assessment? |
Observation re: the 3rd log (vscode-app-1719906634973.log): I see the proxy being created at port 51197:
But the 502 error looks like a request on port 51301:
In equivalent logging in my own Positron session just now, these two ports are the same (61588, yes, I know these ports are random):
|
This is wayy too much SE for me but If needed, I can go on a remote session or if you guide me like @juliasilge did, i hope I could provide some other usefull logs. I did not try from other computers so can't say if its something in my local machine or in-fact some bug. Thanks for the attention! |
@iamYannC can you:
One will look like this:
The other will look like this:
Notice that I, like @jennybc, have the same port in these two places. Do you have different ports? |
Hey. I cant understand its behaviour. It doesnt work, but then I just load a package (here, dplyr), and it's as if it brings up also the base R help documentation. -- 3 Log files for data frames
-- example.mp4 |
@iamYannC do you mind rebooting your computer and then downloading the latest release to try again? |
Same behviour. Failed to load resource: the server responded with a status of 502 (Bad Gateway) - data.frame.html On my second try it didnt load https://github.com/posit-dev/positron/assets/130578277/c871f5ee-6e8e-483c-b919-c8df549e3407 |
I think i keep getting these SEND heartbeat w tout 30 secs line printed.. |
Did you try and perform a help request before you captured those logs? I don't see a help request attempt anywhere in the logs. The heartbeat is normal. |
Another attempt yielded that line (log not attached):
|
https://youtu.be/DfxWhM8YTcw?t=202 |
I'm bumping this back to triage since multiple people are running into this problem. |
@iamYannC the |
@iamYannC okay one more request. Please do exactly what you did before with the logs, but first go into Settings ( |
Console R 4.4.0 with trace.log Just in case, I will restart and do that |
I have the same problem, which never happened before. Even after I restart my Mac and updated Positron. Positron Version: 2024.07.0 (Universal) build 85 |
It's amazing, after working with VS Code for a while, I accidentally discovered that the positron issue was resolved! It's working now! I can see the help information. |
We haven't yet linked this discussion where folks are having similar problems: #3738 |
A couple thing I see in @iamYannC's latest logs
And then a little later after a restart of R and another
I think what this is telling me is that:
Something in that last step seems to be the issue? |
Also see this in @CongSIBR's logs
|
After a bit of reading, it is possible that this error message is a known thing with users of reqwest/hyper reqwest doesn't seem to have a retry mechanism baked in, which kind of blows my mind, but possibly we can try and add one using the again crate and this blog post as a model Or reqwest-retry, whichever seems more robust (ok, seems like this is the more robust one) That's a first step, at least |
Very much appreciated @Posit team. |
Hi, |
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
QA NotesNote that no one internally has been able to observe this class of problems so far. In posit-dev/ark#489 I added retries to the Help proxy request.
Note If you as a user continue to see problems (or see different kinds of problems), what is helpful is to change the R kernel log level to trace and share the logs from the R Console attached as a file to an issue. Let's have any users with further problems open a new issue because this one is getting hard to parse. |
Verified Fixed
Test scenario(s)Attempted to repro according to filing instructions with OSX and Windows and saw no issues. Link(s) to TestRail test cases run or created: |
@testlabauto FYI this was actually closed a bit prematurely, as #4528 just pulled in the actual fix (it is unlikely you would have been able to trigger the bug anyways though, as none of us have ever actually seen it before) |
For folks who have been having trouble with the R Help proxy, the latest release incorporates the changes we hope will help or solve the problem. Please give it a try! Note If you as a user continue to see problems (or see different kinds of problems), what is helpful is to change the R kernel log level to trace and share the logs from the R Console attached as a file to an issue. Let's have any users with further problems open a new issue. Thanks! |
Positron Version:
Positron Version: 2024.06.1 (system setup) build 2024.06.1-27
Code - OSS Version: 1.90.0
Commit: a893e5b
Date: 2024-06-26T01:33:58.809Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631
Steps to reproduce the issue:
?data_frame
or any other?
What did you expect to happen?
Open a help window
Were there any error messages in the output or Developer Tools console?
No error msg, but it just shows the html address and does not display the help documentation (only when hover, which is nice but not enough)
The text was updated successfully, but these errors were encountered: