Thanks for the report Brian.
I can’t reproduce at the moment – can you provide some kind of trace on the exact query you initially send in and the raw response you’re getting back from the API?
I send my initial request:
GET /1.1/search/tweets.json?q=%23bacon HTTP/1.1
This is the metadata I get back, with #bacon encoded a single time as I would expect:
"search_metadata":{"completed_in":0.046,"max_id":360774524679102464,"max_id_str":"360774524679102464","next_results":"?max_id=360772806599913471&q=%23bacon&include_entities=1","query":"%23bacon","refresh_url":"?since_id=360774524679102464&q=%23bacon&include_entities=1","count":15,"since_id":0,"since_id_str":"0"}}
If I then walk to the next page it gave me, I still get a valid looking metadata:
“search_metadata”: {
“max_id”: 360772806599913471,
“since_id”: 0,
“refresh_url”: “?since_id=360772806599913471&q=%23bacon&include_entities=1”,
“next_results”: “?max_id=360769982516301823&q=%23bacon&include_entities=1”,
“count”: 15,
“completed_in”: 0.03,
“since_id_str”: “0”,
“query”: “%23bacon”,
“max_id_str”: “360772806599913471”
}
}
If you’re able to reproduce this in a curl request and can include the HTTP headers you got back in the response, I can look into whether there’s some kind of rogue server in the pool or something causing this for you.