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

Getting issue with create_subscription TypeError: function takes 3 arguments plus optional tzinfo (8 given) #160

Open
vinod-k-dev opened this issue Jul 11, 2024 · 1 comment

Comments

@vinod-k-dev
Copy link

vinod-k-dev commented Jul 11, 2024

ref => https://github.com/AuthorizeNet/sample-code-python/blob/master/RecurringBilling/create-subscription.py
I'm getting issue with create_subscription method when I calling

Creating the request

request = apicontractsv1.ARBCreateSubscriptionRequest()
request.merchantAuthentication = merchantAuth
request.subscription = subscription

# Creating and executing the controller
controller = ARBCreateSubscriptionController(request)
controller.execute()

After execute getting error 
lib/python3.10/site-packages/pyxb/binding/datatypes.py", line 662, in __new__
raise TypeError('function takes %d arguments plus optional tzinfo (%d given)' % (len(cls._ValidFields), len(args)))

TypeError: function takes 3 arguments plus optional tzinfo (8 given)

Can anyone help
Thank you

@vinod-k-dev vinod-k-dev changed the title Getting issue with create_subscription Getting issue with create_subscription TypeError: function takes 3 arguments plus optional tzinfo (8 given) Jul 11, 2024
@dhanashreeyadav1
Copy link

TCS-Dev Dhanashree- If I try to execute the file, I am not able to reproduce the error because we have replaced the offending serialization library with a newer one, which will hopefully not cause more issues like this.

This issue has been fixed in v1.1.5.

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

No branches or pull requests

2 participants