-
Notifications
You must be signed in to change notification settings - Fork 27
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
Store hash value not updated by ldClient.identify() #42
Comments
This sounds like a very Electron-specific issue— is there a reason you filed it in |
I submitted it here because the root issue is that the |
Well, I may just not be reading your description correctly, but I'm having trouble understanding which of these two statements (if any) correctly characterizes what you're seeing:
|
Hey Eli, sorry for the confusion. It’s the former. I’ve observed the file
name length error using the Electron SDK, but the hash is not updated
regardless of which SDK is being used.
…On Tue, May 25, 2021 at 5:28 PM Eli Bishop ***@***.***> wrote:
Well, I may just not be reading your description correctly, but I'm having
trouble understanding which of these two statements (if any) correctly
characterizes what you're seeing:
1. The user hash never gets updated when identify is called. In the
case of Electron, this leads to a later error related to filename length.
In other SDKs, the consequence is something else.
2. The user hash normally does get updated when identify is called,
except in the case of Electron, where an error related to filename length
can sometimes stop it from being updated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAT42CY6FYCZ7B5F3O6DQCTTPQ6BXANCNFSM45QNYDEQ>
.
|
…-warning add comments about removing custom event warning logic in the future
Describe the bug
Potentially an extension of #13. The Store instance is created with an initial
hash
argument but does not update the hash whenldClient.identify()
is called. Whenlaunchdarkly-electron-client-sdk
is being used, theelectron-json-storage
library frequently cannot handle the length of the hash generated from theLDUser
provided byident.getUser()
.To reproduce
launchdarkly-electron-client-sdk
in the Electron main process, e.g. with user{ key: '123', name: 'user', email: '[email protected]' }
.identify()
. Use anLDUser
with a lot of custom props.ENAMETOOLONG
exception will be thrown ifgetFlagsKey
creates a key that is too long from the JSON stringification of the user.Expected behavior
LDElectron.initializeInMain
(this would be in https://github.com/launchdarkly/electron-client-sdk).identify()
is called, thehash
argument provided updates the hash in theStore
closure in case it wasn't provided when theStore
was created (to avoid theENAMETOOLONG
error on subsequent calls toidentify()
).Logs
Log from our app in which
abTestingService
acts aslogger
for the SDK and adds some extra logs.log.log
SDK version
launchdarkly-electron-client-sdk 1.6.1
launchdarkly-eventsource 1.4.0
launchdarkly-js-client-sdk 2.19.1
launchdarkly-js-sdk-common 3.3.1
Language version, developer tools
Node.js v12.18.3
NPM 7.6.0
TypeScript 3.9.9
Webpack 4.46.0
OS/platform
macOS Big Sur 11.3.1
Electron 11.4.4
Additional context
Let me know if I can provide any more context!
The text was updated successfully, but these errors were encountered: