ashcrow / flask-track-usage

Basic metrics tracking for the Flask framework.
Other
53 stars 33 forks source link

When using app.config['TRACK_USAGE_USE_FREEGEOIP'] = True on localhost cannot write to mongoldb #61

Open cityjumper opened 3 years ago

cityjumper commented 3 years ago

I believe when writting to MongoDB one cannot have empty strings but the default values of localhost bring something like:

{ "businessName" : "", "businessWebsite" : "", "city" : "", "continent" : "", "country" : "", "countryCode" : "", "ipName" : "", "ipType" : "Residential", "isp" : "", "lat" : "", "lon" : "", "org" : "", "query" : "127.0.0.1", "region" : "", "status" : "success" }

Causing issues when testing the capabilities.

Sarthak001 commented 2 years ago

any updates on this one ??