Uploaded image for project: 'Kayako Python API Library'
  1. Kayako Python API Library
  2. PYTHONAPI-14

System generates exception if there is any billing time track entry available over ticket.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Done
    • Labels:
      None

      Description

      Replication steps:

      1. Create ticket with in-progress status.
      2. Add one billing entry in it.
      3. Try to get ticket list with api.get_all(Ticket, 2, ticketstatusid='2'): method.
      4. System will generate following exception:

      Traceback (most recent call last):
      File "/Users/ravisharma/python/src/test.py", line 13, in <module>
      for dept in api.get_all(Ticket, 2, ticketstatusid='3'):
      File "/Users/ravisharma/python/src/kayako/api.py", line 517, in get_all
      return object.get_all(self, *args, **kwargs)
      File "/Users/ravisharma/python/src/kayako/objects/ticket/ticket.py", line 206, in get_all
      return [Ticket(api, **cls._parse_ticket(api, ticket_tree)) for ticket_tree in tree.findall('ticket')]
      File "/Users/ravisharma/python/src/kayako/objects/ticket/ticket.py", line 102, in _parse_ticket
      timetracks = [TicketTimeTrack(api, **TicketTimeTrack._parse_ticket_time_track(ticket_time_track_tree, ticketid)) for ticket_time_track_tree in ticket_tree.findall('note') if ticket_note_tree.get('type') == 'timetrack']
      File "/Users/ravisharma/python/src/kayako/objects/ticket/ticket_time_track.py", line 67, in _parse_ticket_time_track
      worktimeline=cls._parse_date(ticket_time_track_tree.get('workdate')),
      File "/Users/ravisharma/python/src/kayako/core/object.py", line 33, in _parse_date
      raise KayakoResponseError('There was an error parsing the response (_parse_date(%s, required=%s, strict=%s):\n\t%s' % (data, required, strict, error))
      kayako.exception.KayakoResponseError: There was an error parsing the response (_parse_date(None, required=True, strict=True):
      int() argument must be a string or a number, not 'NoneType'

        Attachments

          Activity

            People

            • Assignee:
              ravi.sharma Ravi Sharma
              Reporter:
              ravi.sharma Ravi Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: