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

Handle incorrect responses #24

Closed
chuwy opened this issue Oct 7, 2015 · 3 comments
Closed

Handle incorrect responses #24

chuwy opened this issue Oct 7, 2015 · 3 comments
Assignees
Milestone

Comments

@chuwy
Copy link
Contributor

chuwy commented Oct 7, 2015

I used webserver sending incorrect response:

#!/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...
...
@chuwy chuwy added the bug label Oct 7, 2015
@chuwy chuwy self-assigned this Oct 7, 2015
@alexanderdean
Copy link
Member

Is that an infinite loop? It looks like it throws an error after 5 retries...

@chuwy
Copy link
Contributor Author

chuwy commented Oct 7, 2015

This output is endless.

@alexanderdean alexanderdean added this to the Version 0.2.0 milestone Oct 7, 2015
@alexanderdean
Copy link
Member

Scheduling for 0.2.0 then...

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

2 participants