Skip to content
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

405 Method not allowed connecting to a remote server #3306

Closed
IanMatthewHuff opened this issue Jun 24, 2019 · 2 comments
Closed

405 Method not allowed connecting to a remote server #3306

IanMatthewHuff opened this issue Jun 24, 2019 · 2 comments
Assignees

Comments

@IanMatthewHuff
Copy link
Member

Bug reported by @atulkakrana here:
https://github.com/microsoft/vscode-python/issues/4987

I could fix the "self signed certificate" error following instructions here: https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/
But now I am getting the Error:
Failed to connect to remote Jupyter notebook. Check that the Jupyter Server URI setting has a valid running server specified. https://ec2-xx-xx-xx-xx.us-east-2.compute.amazonaws.com:8000/ Error: Invalid response: 405 Method Not Allowed

Source: Python (Extension)
The certificate and key were generated:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem
and specified in Jupyterhub_config file.
Any help???????????????????????

@IanMatthewHuff IanMatthewHuff self-assigned this Jun 24, 2019
@IanMatthewHuff
Copy link
Member Author

Hey @atulkakrana. Sorry about having to split this out. But I want to make sure that were tracking issues 1:1 with threads so it's easier to tell what is getting fixed and when.

Can you give me a little more information about your server setup? The self cert issue was easy to setup myself, but I've never yet seen this 405 issue reported so I don't have a solid repro to investigate it.

A few questions that might help to diagnose this.

  1. Via the URL it looks like this machine is set up for a password connection. Is that the case? Would it be possible to also try a token connection to this server?
  2. I think that you already mentioned this in the thread, but with the same URL you are able to open a web browser and run everything from the same machine that vscode is running on?
  3. Looks like via the URL this is an aws machine, any thing that might be unusual with the server setup on that machine?

@greazer
Copy link
Member

greazer commented Oct 18, 2019

Closing. Need more information to investigate.

@greazer greazer closed this as completed Oct 18, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants