My OTRS instance has a specific ticket number generator, so ticket numbers are not made of digits only (an example of ticket number in my system is "210315-VT1203" ). Apparently (and if I understand), non-numeric ticket numbers cause TicketCreate() to fail when it generates its return infos.
For example I have a ticket number like "210315-VT1203" and I obtained this error (although the ticket is created as expected):
Traceback (most recent call last):
File "./testpyotrs.py", line 45, in
createtest()
File "./testpyotrs.py", line 37, in createtest
client.tc.TicketCreate(t, a,) # [df1, df2], [att1])
File "/usr/local/lib/python3.6/site-packages/otrs/client.py", line 109, in add_auth
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/otrs/ticket/operations.py", line 46, in call
infos = {extract_tagname(i): int(i.text) for i in elements}
File "/usr/local/lib/python3.6/site-packages/otrs/ticket/operations.py", line 46, in
infos = {extract_tagname(i): int(i.text) for i in elements}
ValueError: invalid literal for int() with base 10: '210315-VT1203'
Thanks
My OTRS instance has a specific ticket number generator, so ticket numbers are not made of digits only (an example of ticket number in my system is "210315-VT1203" ). Apparently (and if I understand), non-numeric ticket numbers cause TicketCreate() to fail when it generates its return infos.
For example I have a ticket number like "210315-VT1203" and I obtained this error (although the ticket is created as expected):
Traceback (most recent call last):
File "./testpyotrs.py", line 45, in
createtest()
File "./testpyotrs.py", line 37, in createtest
client.tc.TicketCreate(t, a,) # [df1, df2], [att1])
File "/usr/local/lib/python3.6/site-packages/otrs/client.py", line 109, in add_auth
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/otrs/ticket/operations.py", line 46, in call
infos = {extract_tagname(i): int(i.text) for i in elements}
File "/usr/local/lib/python3.6/site-packages/otrs/ticket/operations.py", line 46, in
infos = {extract_tagname(i): int(i.text) for i in elements}
ValueError: invalid literal for int() with base 10: '210315-VT1203'
Thanks