-
Notifications
You must be signed in to change notification settings - Fork 12
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
Logout API not working #10
Comments
What happens if you try with
do you still get an error? |
Yes, I get the same error. The HTTP status code is always 400. |
My guess is that the Here is where we build the request parameter: And here is where we manage conversions for Python: So we may have a bug in our builder since we should probably expect As a work around, what if you try passing |
This fixes the issue. Should I close it? |
Please leave it open, so we can fix the issue. As @robotdan says, we should handle |
Working around this rather than fixing it because of future plans to overhaul client libs. If those don't work, should circle back and fix this by modifying client builder freemarker to stringify and lowercase all boolean args.
#11 documents the workaround. |
FusionAuth/fusionauth-python-client#10 is the issue. when we are handed a True object, we need to serialize it to the string 'true'. In staticly typed languages we use a converter. I didn't think python had one, so just brute forced it with a function call.
Have a fix for this in the code: FusionAuth/fusionauth-client-builder#46 |
Added test for it here: #16 This test will fail until there's a new release, but I've checked it manually and FusionAuth/fusionauth-client-builder#46 will cause the test to pass. |
The fix is merged and will be included in the next release of the client library. |
Hi, I am using the python client to logout a user. Unfortunately, I am getting the following response from the server.
Here is my code:
Versions
Fusionauth-client 1.19.8
FusionAuth 1.19.8
The text was updated successfully, but these errors were encountered: