Skip to content

405 Method not allowed connecting to a remote server #3306

Closed

Description

Bug reported by Atul Kakrana (@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???????????????????????

Activity

  1. IanMatthewHuff commented on Jun 24, 2019

    @IanMatthewHuff
    MemberAuthor

    Hey Atul Kakrana (@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?
  2. greazer commented on Oct 18, 2019

    @greazer
    Contributor

    Closing. Need more information to investigate.

  3. locked as resolved and limited conversation to collaborators on Oct 25, 2019
  4. unlocked this conversation on Nov 14, 2020
  5. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions