Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validateV3Signature fails when there is no query parameter in URL using Post Method #335

Open
Matt-B50 opened this issue Dec 30, 2023 · 0 comments
Assignees
Labels

Comments

@Matt-B50
Copy link

I get

Warning: Undefined array key "query" in Plivo\Util\v3SignatureValidation::constructGetUrl() (line 101 of /code/vendor/plivo/plivo-php/src/Plivo/Util/v3SignatureValidation.php)

See https://github.com/plivo/plivo-php/blob/0061ba51c96c6c27e92c2ba98250f3547b81b794/src/Plivo/Util/v3SignatureValidation.php#L101C9-L101C44

I'm submitting the URL called by Plivo on a POST request to my end point. It has no query parameter (and I'm not switching to GET requests). I've overcome this by appending a "?" to my URL when calling validateV3Signature

@anindya-plivo anindya-plivo self-assigned this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants