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

appName cannot contain spaces #655

Closed
bmerigan opened this issue Aug 27, 2024 · 5 comments
Closed

appName cannot contain spaces #655

bmerigan opened this issue Aug 27, 2024 · 5 comments
Labels

Comments

@bmerigan
Copy link

Describe the bug

After a LOT of troubleshooting, I worked out that the appName parameter cannot contain spaces. Unleash was failing and I didn't know why.
As a quoted string I assumed anything goes.

const unleash = initialize({
  url: 'https://YOUR-API-URL',
  appName: 'my-node-name',
  customHeaders: { Authorization: '<YOUR_API_TOKEN>' },
});

Steps to reproduce the bug

No response

Expected behavior

There may be a good reason for this, but if so maybe it could be called-out specifically in the documentation / README.
I've spent days trying to work out why my implementation wasn't working.

Logs, error output, etc.

No response

Screenshots

No response

Additional context

No response

Unleash version

"unleash-client": "^6.1.1"

Subscription type

Open source

Hosting type

Self-hosted

SDK information (language and version)

No response

@bmerigan bmerigan added the bug label Aug 27, 2024
@bmerigan
Copy link
Author

bmerigan commented Aug 27, 2024

Closing. There's something else going on here. The value is important and cannot be arbitrary, but so far my implementation will only accept test.

Found info in other doco:

Set the Unleash client application name to the name of the environment your application runs in. This value is used to match environment scopes. See the example client configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants
@bmerigan and others