You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some code like below but it appears to be dropping the Accept header for the preview of projects endpoint when trying to paginate. Is there some other way that I should be running configure to make that work?
Hey. It is not abandoned. I read most of the issues and PRs and I know @acrobat is doing a great job being more active then me.
I've done some reading. I cannot see why it drops the Accept header. Could you debug the AcceptTrait::get and also see what is happening in the AcceptTrait::mergeHeaders function?
PHP Fatal error: Uncaught Github\Exception\RuntimeException:
If you would like to help us test the Commit Search during its preview period, you must specify a custom media type in the 'Accept' header. Please see the docs for full details.
in /home/aaron/----/-----/vendor/knplabs/github-api/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php:87
Activity
bobeagan commentedon Jul 3, 2018
Anyone else seeing the same problem or know of a work around? Did this project get abandoned?
bobeagan commentedon Jul 19, 2018
@acrobat ?
Nyholm commentedon Jul 19, 2018
Hey. It is not abandoned. I read most of the issues and PRs and I know @acrobat is doing a great job being more active then me.
I've done some reading. I cannot see why it drops the
Acceptheader. Could you debug theAcceptTrait::getand also see what is happening in theAcceptTrait::mergeHeadersfunction?acrobat commentedon Jul 22, 2018
@bobeagan Sorry for the late reply! It would be indeed usefull if you could do some debugging in the
AcceptTrait.After that we can look further into the issue or create some reproducer. Thanks!
AronNovak commentedon Aug 16, 2018
I have exactly the same problem with this snippet:
What results in:
AronNovak commentedon Aug 25, 2018
For a very quick workaround, you may use this:
And it works without any issues.
^^ @bobeagan
antoniotajuelo commentedon Aug 25, 2018
It works perfect! Thank you!
bobeagan commentedon Aug 31, 2018
Thanks @AronNovak ! I'm just getting back from vacation and catching up on things and was pleasantly surprised to find your workaround.
acrobat commentedon Sep 12, 2018
What's the status here? Do we need a fix in the library itself?
bobeagan commentedon Oct 5, 2018
I believe so but I haven't had a chance to drill into specifically where the loss of the header value is occurring.
bobeagan commentedon Jul 22, 2020
@GrahamCampbell do you know if this is fixed by the work that you did in #907 or perhaps by the change that you are planning for removing
configure()?GrahamCampbell commentedon Jul 22, 2020
The changes in that PR are unrelated. ;)