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

TypeError when updating universal login template #452

Closed
sid-motorq opened this issue Dec 20, 2022 · 1 comment · Fixed by #463
Closed

TypeError when updating universal login template #452

sid-motorq opened this issue Dec 20, 2022 · 1 comment · Fixed by #463
Labels
needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue

Comments

@sid-motorq
Copy link

sid-motorq commented Dec 20, 2022

Describe the problem

Auth0.branding.update_template_universal_login(htmlText) gives TypeError: RestClient.put() got an unexpected keyword argument 'type'

What was the expected behavior?

It should update the universal login page

Reproduction

  • call update_template_universal_login()

update_template_universal_login() is defined as
return self.client.put( self._url("templates", "universal-login"), type="put_universal-login_body", body={"template": body}, )

removing the type parameter and changing body to data fixes the issue

Environment

  • Version of this library used:
    auth0-python==3.24.0
@adamjmcgrath
Copy link
Contributor

Thanks for raising this @sid-motorq

Please continue to use the workaround and we'll take a look when we can

@adamjmcgrath adamjmcgrath added the needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants