You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
Invalid payload error when creating a new Typeform. #16
Invalid payload error when I try to create a new Typeform.
Expected Behavior
A new form on Typeform should be created.
Current Behavior
No form is created because of an issue I can't fix.
Steps to Reproduce
Copy and paste the code down below in any IDE.
Run the code.
See the error.
Context (Environment)
I've been trying to solve this by myself for hours but I can't find a way to fix this.
This issue is the only problem I have to accomplish my work : I am trying to make a Python application to create a form using the data (questions) in an Excel file.
my_typeform=typeform.Typeform(getpass('Token (text will be hidden): '))
# Create a new formmy_typeform.forms.create({
'type': 'quiz',
'title': 'My typeform',
'fields': [
{
'title': 'Nice to meet you, how is your day going?',
'properties': {
'randomize': False,
'allow_multiple_selection': False,
'allow_other_choice': False,
'vertical_alignment': True,
'choices': [
{'label': 'Terrific!'},
{'label': 'Not so well...'}
]
}
}
]
})
my_typeform=typeform.Typeform(getpass('Token (text will be hidden): '))
form=my_typeform.forms# Delete all the older formsforeinform.list()['items']:
form.delete(e['id'])
# Create a new formtest=form.create({
'title': ef.filename.split('.')[0],
'type': 'quiz'
})
# Update the new formform.update(test['id'], {
'fields': [
{
'id': 1,
'title': 'My Title',
'properties': {
'description': 'This is a test',
'choices': [
{'label': 'Yes'},
{'label': 'No'}
]
}
}
]
})
Traceback (most recent call last):
Line 124, in <module>
form.update(test['id'], {
Line 51, in update
return self.__client.request(methodType, '/forms/%s' % uid, data=data)
Line 31, in request
return self.__validator(result)
Line 40, in __validator
raise Exception(body.get('description'))
Exception: The payload is invalid.
changed the title [-]The payload is invalid even with the copy of a Typeform created on the very website[/-][+]nvalid payload error when I try to create a new Typeform.[/+]on Feb 25, 2021
changed the title [-]nvalid payload error when I try to create a new Typeform.[/-][+]Invalid payload error when I try to create a new Typeform.[/+]on Feb 25, 2021
changed the title [-]Invalid payload error when I try to create a new Typeform.[/-][+]Invalid payload error when creating a new Typeform.[/+]on Feb 25, 2021
Activity
Vianpyro commentedon Feb 25, 2021
Same for this:
[-]The payload is invalid even with the copy of a Typeform created on the very website[/-][+]nvalid payload error when I try to create a new Typeform.[/+][-]nvalid payload error when I try to create a new Typeform.[/-][+]Invalid payload error when I try to create a new Typeform.[/+][-]Invalid payload error when I try to create a new Typeform.[/-][+]Invalid payload error when creating a new Typeform.[/+]Vianpyro commentedon Feb 25, 2021
Found a way to fix this issue using this repository: https://github.com/markhamazaspyan/automated-python-typeform made by markhamazaspyan.