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

Not working correctly #175

Closed
RogerBrusamarello opened this issue Aug 7, 2024 · 4 comments
Closed

Not working correctly #175

RogerBrusamarello opened this issue Aug 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@RogerBrusamarello
Copy link

Describe the bug

I am receiving this error after building the app.

All my credential is correct.

ERROR Unleash: unable to fetch feature toggles [TypeError: Cannot set property 'Authorization' of undefined]

Steps to reproduce the bug

Just added the package and use UnleashClient or IConfig

Expected behavior

Work

Logs, error output, etc.

ERROR  Unleash: unable to fetch feature toggles [TypeError: Cannot set property 'Authorization' of undefined]

Screenshots

image
image

Additional context

No response

Unleash version

"unleash-proxy-client": "3.5.2", "@unleash/proxy-client-react": "4.3.1",

Subscription type

None

Hosting type

None

SDK information (language and version)

No response

@RogerBrusamarello RogerBrusamarello added the bug Something isn't working label Aug 7, 2024
@Tymek Tymek self-assigned this Aug 8, 2024
@ivarconr
Copy link
Member

ivarconr commented Aug 8, 2024

Hi @RogerBrusamarello ,

can you share a bit more about your setup and configuration of the SDK?

@Tymek
Copy link
Member

Tymek commented Aug 8, 2024

can you share a bit more about your setup and configuration of the SDK?

Yes, sharing more details will help us diagnose it faster.
@RogerBrusamarello I don't thing your app crashing is because of Unleash, but I can be wrong. Unleash: unable to fetch feature toggles is a caught error, unrelated to the exception on your screenshot.

@RogerBrusamarello
Copy link
Author

RogerBrusamarello commented Aug 8, 2024

I just follow the documentation, using the flag provider and the config/unleash client and receive that error. Really weird. Do you need something else?

@RogerBrusamarello
Copy link
Author

I found the issue, my project use SSL Pinning interceptor, so the package wasn't requesting correctly. I fixed with a workaround on fetch property.

But after that I need to use react-native-get-random-value to work correctly. You could add this lib as peer dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants