-
Notifications
You must be signed in to change notification settings - Fork 14
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
403 in PHP SDK when passing prefix or tags in the URL #205
Comments
thanks for raising this. The biggest thing that stands out to me is that you say the URL it produces is In the PHP SDK doc it suggest to use the following format to use the namePrefix: <?php
use Unleash\Client\UnleashBuilder;
use Unleash\Client\Helper\Url;
$builder = UnleashBuilder::create()
->withAppName('Some app name')
->withAppUrl(new Url('https://some-app-url.com', namePrefix: 'somePrefix.'))
->withInstanceId('Some instance id'); Have you tried this configuration? |
Yes, I tried that. Since raising the ticket I've been looking into the code and it seems the that the See line 120 of
But the result from |
@RikudouSage Can confirm that your fix works. |
Describe the bug
Following the documentation when I try to pass in either a name prefix or tags in the URL using
UnleashBuilder::create()
I always get a 403 response.Steps to reproduce the bug
With this code
Which gives a URL like this
https://unleash.company.com/api?namePrefix=AH-
The response is always
Expected behavior
The flag should be retrieved without error.
Logs, error output, etc.
Screenshots
No response
Additional context
The same thing happens if I try to include any tags in the URL.
Unleash version
PHP SDK 2.4
Subscription type
None
Hosting type
Hosted by Unleash
SDK information (language and version)
PHP SDK 2.4
The text was updated successfully, but these errors were encountered: