Skip to content

Not send request #38

@deevroman

Description

@deevroman
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions