getting HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>
Hey there, using Ruby on rails. I am getting this when I hit F5. The command line is serving the site properly to http://localhost:12345
HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>
I am running the following command inside of VSCODE to start, and it si serving content properly to http://localhost:12345
*** new info, I found out we're running Ruby 2.7.2. Is there a 3.x requirement? ***
bundle exec rdbg --open -n -c -- bundle exec rails s --port 12345
Any ideas? It is definitely serving my development.rb, and my development.rb contains: config.force_ssl = false
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "rdbg", "name": "Attach with rdbg", "request": "attach", "showProtocolLog": true, "debugPort": "12345" } ] }
debug console output
[Start session] {"d":{},"f":"27a2487c-5fb0-4b1a-a3c0-2233ec076285","g":"rdbg","h":"Attach with rdbg","i":{"uri":{"$mid":1,"fsPath":"/Users/dma/dcauto","external":"file:///Users/dma/dcauto","path":"/Users/dma/dcauto","scheme":"file"},"name":"dcauto","index":0},"j":{"type":"rdbg","name":"Attach with rdbg","request":"attach","debugPort":"12345","__configurationTarget":6}} [Error on session] Error: connection closed e: {}
Thank you! I need to debug.
could you repro with small rails app or only on your app?