OwlSoul / YandexTransportProxy

Proxy server for Yandex Transport API methods.
MIT License
18 stars 2 forks source link

Data collection for routes fail on SG03-RedImp test server #1

Closed OwlSoul closed 5 years ago

OwlSoul commented 5 years ago

Data collection for routes fail on SG03-RedImp test server, it throws an exception with JSON decoding error.

This happens only on SG03-RedImp (test server) when launching YandexTransportProxy inside docker container and continuous tests inside another container.

There is no problem with stops data collection, routes only.

Very nasty thing.

OwlSoul commented 5 years ago

Test: Tests are running inside docker container, proxy-server is running inside docker container. Result: SG03 (Test Server) - Fail, SG09 (Development Machine) - Fail Python version: 3.6.7 Library (json) version: 2.0.9 Chrome version: 73.0.3683.75

Typical errors (client side) : Exception (_single_query_blocking) : JSON loads : Expecting ':' delimiter: line 1 column 176659 (char 176658) Exception (_single_query_blocking) : JSON loads : Invalid \uXXXX escape: line 1 column 160727 (char 160726) Exception (_single_query_blocking) : JSON loads : Expecting ',' delimiter: line 1 column 141905 (char 141904)

Typical error (server side): "ConnectionResetError: [Errno 104] Connection reset by peer" in data = "self.conn.recvfrom(4096)"

OwlSoul commented 5 years ago

Problem fixed. Data is sent in small chunks instead. See Issue #1 of Yandex Transport Webdriver API - Python