Closed natchu closed 5 years ago
This is the error message :
atws.wrapper.AutotaskAPIException: 'Autotask API has returned an error.\n Please process the response attribute in this exception to determine\n the extent of this failure.\n '[IntegrationCode is invalid., '<queryxml><entity>Ticket</entity><query><field>id<expression op="Equals">379277</expression></field></query></queryxml>']
And the kwargs looks like the following:
{'atws_version': <class 'atws.wrapper.Wrapper'>, 'username': '...', 'password': '...', 'apiversion': 1.5, 'client_options': {'transport': <atws.connection.RequestsTransport object at 0x7f370ad67240>, 'url': 'https://webservices6.autotask.net/ATServices/1.5/atws.wsdl'}}
If you have obtained an integrationcode then it must be supplied under 1.5 as well.
From api v1.6 documentation:
A tracking identifier is not required to access v1.5, unless the user accessing v1.5 already has an identifier assigned. In that case, the user is required to provide their identifier.
I'll add that into the documentation.
If you have obtained an integrationcode then it must be supplied under 1.5 as well.
From api v1.6 documentation:
A tracking identifier is not required to access v1.5, unless the user accessing v1.5 already has an identifier assigned. In that case, the user is required to provide their identifier.
Thank you!
@MattParr could you point me where in the documentation did you add the IntegrationCode????
also who can you choose between V1.6 or V.5 ?
@matt in your example of creating a ticket on the docs. I really can’t find the AccountID. I’ve googled and everything but nothing. I tried omitting the field but autotask api doesn’t like it. What is that AccountID my friend?
query = atws.Query('Account')
query.WHERE('id',query.GreaterThan,0)
accounts = at.query(query)
# enumerate them
for account in accounts:
print(account.id)
The code keeps returning the same error
The error seems to occur when I try to use API version 1.5. If I use 1.6, with integration code it works
Also Suds version seems to come up as a warning.
Any help?