Skip to content

ValueError: not enough values to unpack (expected 2, got 1) #48

Description

@darkpixel

After migrating an app to python 3 and installing the latest version of python-rtkit, I'm suddenly getting errors when trying to create a new ticket:

Traceback (most recent call last):
  File "/home/aaron/code/uitintranet/cw/tasks.py", line 732, in sync_cw_ticket_to_rt
    response = resource.post(path='ticket/new', payload=str(content))
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/resource.py", line 33, in post
    return self.request('POST', path, payload, headers)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/resource.py", line 40, in request
    payload = forms.encode(payload, headers)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/forms.py", line 138, in encode
    mf = MultipartForm(value, BOUNDARY)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/forms.py", line 22, in __init__
    name, value = param
ValueError: not enough values to unpack (expected 2, got 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions