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

fix: make sessionId be a string when set automatically #229

Merged

Conversation

chriswk
Copy link
Contributor

@chriswk chriswk commented Sep 4, 2024

So, all of our schemas (even our type definitions) define sessionId to be a string, however, when user does not set one, we generate one automatically as a number, and never convert it back to a string. Don't really know how Typescript allowed this to pass. I guess since we only write the id to localstorage and don't really directly return the generated number, it threw its hands up in the air and gave up.

@chriswk chriswk self-assigned this Sep 4, 2024
@chriswk chriswk linked an issue Sep 4, 2024 that may be closed by this pull request
@chriswk chriswk force-pushed the 228-post-method-fails-when-using-with-new-unleash-edge-service branch from 8927f2a to 5f68477 Compare September 4, 2024 08:15
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chriswk chriswk merged commit d394b41 into main Sep 4, 2024
3 checks passed
@chriswk chriswk deleted the 228-post-method-fails-when-using-with-new-unleash-edge-service branch September 4, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

POST method fails when using with new Unleash Edge service
2 participants