Problem with the streaming api?


#1

Since this night I am unable to connect to the streaming API, I dont see any update to the api or whatever so whats going on?

PHP Fatal error: Uncaught exception ‘Exception’ with message 'Twitter did not send a chunking header. Is this really HTTP/1.1? Here are headers:
connection: close
Content-Type: application/json
transfer-encoding: chunked
date: Wed, 23 Apr 2014 06:38:23 UTC
x-connection-hash: 4d8153f43620d505ab21b834306dd2ff


#2

See https://dev.twitter.com/discussions/27837 and https://github.com/fennb/phirehose/pull/63


#3

Hmmm traced it down to a change in httpcode from 200 to ???


#4

Hi !!

I have a same issue from 13 hours ago (approx.)
Do you discovery the fix?

Many Thanks,
Christian


#5

ok


#6

if(strtolower($hLine)==‘transfer-encoding: chunked’)$isChunking=true;

should fix it for now :smiley:


#7

I had the same issue, I perform the change you mentioned and it is working again for me.
Was this “update/change” warn by twitter some how??? I can not understand they make changes without anticipating it to the users.
Thank you very much for your help!


#8

This is correct. According to RFC it is case-insensitive I think.