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

Not send request #38

Open
deevroman opened this issue Aug 20, 2019 · 0 comments
Open

Not send request #38

deevroman opened this issue Aug 20, 2019 · 0 comments

Comments

@deevroman
Copy link

POST http://localhost:8080/imports
Content-type: application/json
POST_BODY:
{"citizens": [{"citizen_id": 1,"town": "Москва","street": "Льва Толстого","building": "16к7стр5","apartment": 7,"name": "Иванов Иван Иванович","birth_date": "26.12.1986","gender": "male","relatives": [2]}, {"citizen_id": 2,"town": "Москва","street": "Льва Толстого","building": "16к7стр5","apartment": 7,"name": "Иванов Сергей Иванович","birth_date": "17.04.1997","gender": "male","relatives": [1]}, {"citizen_id": 3,"town": "Керчь","street": "Иосифа Бродского","building": "2","apartment": 11,"name": "Романова Мария Леонидовна","birth_date": "23.11.1986","gender": "female","relatives": []} ]}

Console output:

Requesting....
POST   http://  HOST  localhost  PORT  8080  PAGE:  /imports
REQ HEADERS  Content-type  :  application/json
REQ HEADERS  Accept  :  */*
REQ HEADERS  User-Agent  :  curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
REQ HEADERS  Content-lenght  :  595
Exception in thread Thread-73:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 132, in run
    conn.request(requestType, request_page, requestPOSTBody, headers)
  File "./python3.3/http/client.py", line 1065, in request
  File "./python3.3/http/client.py", line 1102, in _send_request
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 40-45: ordinal not in range(256)

Traceback (most recent call last):
  File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 72, in <lambda>
  File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 20, in monitorDownloadThread
  File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 368, in showResultToPresenter
AttributeError: 'HttpRequester' object has no attribute 'respText'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant