Snowplow micro failure to post event

I’m trying to run snowplow-micro to create a pipeline for a blog application using flask. Currently I have am able to run micro using docker at interface = “” , port = “9090” and when I use
http://localhost:9090/micro/all I can see micro is running however when I attempt to send events to it using my application they do not seem to post correctly and I see the following in my terminal

WARNING:snowplow_tracker.emitters:HTTPConnectionPool(host='', port=9090): Max retries exceeded with url: /i?e=pv&url=http%3A%2F%2F127.0.0.1%3A5000&eid=33fc1dc1-6734-40a7-9e69-064c811b5f38&dtm=1622673680787&tv=py-0.9.0&p=pc&stm=1622673680000 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000025B62563610>: Failed to establish a new connection: [WinError 10049] The requested address is not valid in its context'))

Based on this I think there are 2 potential issues 1) I have not configured micro correctly (it seems to be working though) 2) I am not sending events correctly. My events consist of me currently checking how often a particular page is viewed and the link for it clicked. Code included below

from snowplow_tracker import Tracker, Emitter

e = Emitter("", port=9090)
tracker = Tracker(e)

def posts():
    return render_template('post.html')

Any help would be appreciated.

I managed to get this working seems as though I should be configuring the emitter like this

e = Emitter('')

instead of this

e = Emitter("", port=9090)


1 Like