-
Notifications
You must be signed in to change notification settings - Fork 2k
The sdk not working at all - can not parse http/2 response code #1091
Comments
Having the same issue... |
In case we change the code to:
It works again :) Just changed regular expression to accept HTTP/2 . |
I have the same issue. I moved to the |
Ouch, just experienced this bug in our app. Any time frame when it will be fixed? |
PR fixing this was merged almost a month ago. #1079 |
I'm hoping we can get a patch version rather than wait for 5.7. 🙏 |
@yguedidi Having the same issue, why isn't this patched in 5.6? |
Also, there is no way of using |
Honestly, I'm not sure a release is coming soon, probably not at this time of the year.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/julienbourdeau/php-graph-sdk"
}
],
"require": {
"php": "^7.1.3",
"facebook/graph-sdk": "5.x-dev"
},
|
@julienbourdeau FYI, No need for a fork, you can also do this: "repositories": [{
"type": "vcs",
"url": "http://github.com/facebook/php-graph-sdk"
}
],
"require": {
"php": "^7.1.3",
"facebook/graph-sdk": "5.x-dev"
}, |
That's what I expected but for some reason, it didn't work. I didn't want waste too much time so I didn't look into the details ¯_(ツ)_/¯ |
5.7.0 finally released! Sorry for the delay.. Thanks to who provide workarounds! |
Uh oh!
There was an error while loading. Please reload this page.
The faulty method is this:
public function setHttpResponseCodeFromHeader($rawResponseHeader) { preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match); $this->httpResponseCode = (int)$match[1]; }
it will parse only HTTP/1.1, will not parse HTTP/2 - this makes current version of sdk useless
The faulty version is 5.6.3 that is available on packagist.
The text was updated successfully, but these errors were encountered: