Unexpected location sharing data being returned
See original GitHub issueIt 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/locationsharinglib.py", 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/locationsharinglib.py", line 297, in get_authenticated_person
output[9][1],
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:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Works for me. Let’s do this!
PR: https://github.com/costastf/locationsharinglib/pull/12