An example of this error is shown below:
TypeError: Error in phantom.prompt(): user parameter must be of type string
An example call that generates this error is shown below:
phantom.prompt(user="support", message="Verify incident details", respond_in_mins=30, name="prompt_1", callback=prompt_1_callback)
The issue can be caused by an import that changes what is considered a string, such as:
import unicode_literals
To resolve the issue, specify that the string values are strings using str(). For example:
phantom.prompt(user=str("support"), message=str("Verify incident details"), respond_in_mins=30, name=str("prompt_1"), callback=prompt_1_callback)