Closed cooljeanius closed 4 months ago
yeah, one thing that would help a lot, is if you could open your console and let us know the url that's returning this response? it's likely search/typeahead.json
but if you could confirm that would be excellent, and we can fix this response type
related: #113
yeah, one thing that would help a lot, is if you could open your console and let us know the url that's returning this response? it's likely
search/typeahead.json
but if you could confirm that would be excellent, and we can fix this response type
Is this the right part?
parsedUrl: Array [ "https://twitter.com/i/api/1.1/search/typeahead.json?", "search/typeahead.json" ]
0: "https://twitter.com/i/api/1.1/search/typeahead.json?"
1: "search/typeahead.json"
groups: undefined
index: 0
input: "https://twitter.com/i/api/1.1/search/typeahead.json?include_ext_is_blue_verified=1&include_ext_verified_type=1&include_ext_profile_image_shape=1&q=E&src=compose_message&result_type=users&context_text=%40E"
length: 2
yeah perfect, unfortunately I don't get that error locally, but your error body may be enough to fix it
ok, I was actually able to replicate the error, I didn't realize this was in DMs and not the search bar like #113 thanks for the report
ok, I was actually able to replicate the error, I didn't realize this was in DMs and not the search bar like #113 thanks for the report
@kheina any progress on figuring out what's going wrong here? I'm still seeing this occasionally.
Found it! Error is here: https://github.com/kheina-com/Blue-Blocker/blob/main/src/parsers/search.ts#L18-L19 The parser expects there to be a social_context property on the user object.
In my limited observations, if the twitter user is not following or being followed by the extension user then the social_context property is omitted.
Steps to reproduce:
@
and start typing someone's handleLog output:
Let me know if you need anything expanded.