mre/vscode-snippet

Send request snippet error

dogfootruler-kr opened this issue · 2 comments

Hi,

love the extension but I ran into an error when I searched for "send request" from a javascript file (I also tried "send request javascript").

It created a file with this inside:

>>> import requests
>>> r = requests.post("http://bugs.python.org", data={'number': 12524, 'type': 'issue', 'action': 'show'})
>>> print(r.status_code, r.reason)
200 OK
>>> print(r.text[:300] + '...')

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
Issue 12524: change httplib docs POST example - Python tracker

</title>
<link rel="shortcut i...
>>> 

Thanks!

mre commented

Reported that one upstream, as I can reproduce this on the commandline as well.
Thanks for reporting @patricelynde.

mre commented

The upstream issue was fixed and it works on my machine now. Please try again. 😊