Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected location sharing data being returned

See original GitHub issue

It seems the object being returned by Service._get_data() is not in the format the library expects. This is what I see when I enable logging and try the example in USAGE.rst:

Response: [None, None, '[41-char alphanumeric string]', '[23-char alphanumeric string]', None, None, '[17-char alphanumeric string ending in ==]', 1800, 1522032173486, None, None, [0]]
Traceback (most recent call last):
  File "/Users/jrwiebe/locate/env/lib/python3.6/site-packages/locationsharinglib/", line 284, in get_shared_people
    people = [Person(info) for info in output[0]]
TypeError: 'NoneType' object is not iterable
Response: [None, None, '[same 41 chars]', '[same 23 chars]', None, None, '[same 17 chars]', 1800, 1522032173486, None, None, [0]]
Traceback (most recent call last):
  File "/Users/jrwiebe/locate/env/lib/python3.6/site-packages/locationsharinglib/", line 297, in get_authenticated_person
TypeError: 'NoneType' object is not subscriptable

I hesitate to share the contents of those three semi-redacted strings without knowing what they contain. The Google login appears successful.

[Edited: I initially described the redacted strings as base64, but I only meant that’s what they resembled. Of course if that’s what they were, I’d know how to decode them.]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

jrwiebecommented, Mar 27, 2018

Further debugging showed I was wrong about my Google login being successful. The issue was two-factor authentication. My fork adds support for the mobile prompt method. For completeness the other available methods should probably be added.

I got a fairly deep into figuring out the 2FA flow but was close to giving up when I found a single example of code I could borrow from cevoaustralia/aws-google-auth. The behaviour might be to contributors’ tastes (presenting a prompt, for example), but it works for my purposes. I opted to piggyback on the InvalidCredentials exception for the case where one is locked out for excessive authentication attempts.

jrwiebecommented, Apr 3, 2018

Works for me. Let’s do this!


Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Problems With Location Data and How to Fix Them
These methods return highly inaccurate location data. ... App names are typically only provided if the data is being gathered via Bidstream.
Read more >
If searching your Mac returns unexpected results
Check the location you're searching. If you began your search in Spotlight, the search results can include email, Calendar events, Siri Suggestions, information ......
Read more >
Fused Location Provider unexpected behavior - Stack Overflow
[ location.getProvider() returns :"fused"] I have seen GPS being used only when the LocationRequest has PRIORITY_HIGH_ACCURACY.
Read more >
Unintended Consequences of Location Information
Abstract. In this paper, we identify and evaluate the privacy implications caused by ourselves sharing information on social media platforms.
Read more >
You May Be Sharing Your iPhone's Location with Other People
Sharing your iPhone's real-time location can be very useful when you want family and friends to know where you're at or your estimated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found