Search Query with "to:" Gives Unauthorized Error

search

#1

I can do a search query with “@ニュース OR @ニュース” and it works fine. I’m doing search queries on many different queries that work fine. However, when the query is “@ニュース OR to:@ニュース” I receive a 401 Unauthorized. I don’t think the code is breaking on ‘:’ because ““happy hour” :)” works too. That query does work on twitter.com/search. This is my encoding of the q parameter, which matches twitter.com/search:

%40%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9%20OR%20to%3A%40%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9

Another term that gives the same error is “кот (”, which doesn’t work. However, “кот” works fine.