Missing headers and body in HTTP Request with Psr17#7
Open
rudyzeinoun wants to merge 3 commits intojoelbutcher:6.xfrom
Open
Missing headers and body in HTTP Request with Psr17#7rudyzeinoun wants to merge 3 commits intojoelbutcher:6.xfrom
rudyzeinoun wants to merge 3 commits intojoelbutcher:6.xfrom
Conversation
When switching to Psr17, the createRequest function only takes $method and $url. The headers and body have to be sent in separately after. This causes all POST requests to fail with permission error since the token is the first missing parameter that is checked.
ashiquzzaman33
added a commit
to sigma-smartcomm/facebook-php-graph-sdk
that referenced
this pull request
Nov 12, 2023
|
I think 6.0.1 is broken with this PR after getting 6.0.1 in a composer update are logs are filling with this when trying to post to FB via joelbutcher/laravel-facebook-graph and seems I might not be the only person effected https://developers.facebook.com/community/threads/1350894655461720/ |
|
I have the same issue, and it is resolved with this contribution. Can it be uploaded to the project? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When switching to Psr17, the createRequest function only takes $method and $url. The headers and body have to be sent in separately after. This causes all POST requests to fail with permission error since the token is the first missing parameter that is checked.