#!/usr/bin/enve python3
class ServerHandler(server.SimpleHTTPRequestHandler):
def do_GET(self):
self.log_request(200)
self.send_response_only(200, None)
# self.end_headers() # absence of this line makes response incorrect
self.wfile.write(bytearray("r", 'utf-8'))
With this webserver app with scala tracker fall into infinite loop with sending event and getting invalid response.
[WARN] [10/07/2015 17:29:24.805] [snowplow-scala-tracker-akka.actor.default-dispatcher-165] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/4] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with 5 retries left, retrying...
[WARN] [10/07/2015 17:29:24.810] [snowplow-scala-tracker-akka.actor.default-dispatcher-159] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/1] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with 4 retries left, retrying...
[WARN] [10/07/2015 17:29:24.813] [snowplow-scala-tracker-akka.actor.default-dispatcher-160] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/4] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with 3 retries left, retrying...
[WARN] [10/07/2015 17:29:24.815] [snowplow-scala-tracker-akka.actor.default-dispatcher-169] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/1] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with 2 retries left, retrying...
[WARN] [10/07/2015 17:29:24.819] [snowplow-scala-tracker-akka.actor.default-dispatcher-141] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/4] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with 1 retries left, retrying...
[WARN] [10/07/2015 17:29:24.820] [snowplow-scala-tracker-akka.actor.default-dispatcher-164] [akka://snowplow-scala-tracker/user/IO-HTTP/host-connector-0/1] Connection attempt to localhost:8000 failed in response to GET request to /i?e=pv&eid=fec441e0-4457-4359-9b3a-abc61f837d5b&url=/&refr=http://127.0.0.1:8888/app/play-scala/&aid=test-play-app&tna=scala-tracker&stm=1444228164803&tv=scala-0.2.0&p=srv&dtm=1444227351850 with no retries left, dispatching error...
...
I used webserver sending incorrect response:
With this webserver app with scala tracker fall into infinite loop with sending event and getting invalid response.