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
When I'm trying to call invite_unregistered_to_members, the first sent works OK, but the second letter to another e-mail fails with the ValueError: Unable to build template data dictionary - <class 'str'>is an invalid source data type
I suppose, that the error is caused by Fastmail.py -- def check_data
@staticmethod
def check_data(data: Union[Dict[Any, Any], str, None]) -> Dict[Any, Any]:
if not isinstance(data, dict):
raise ValueError(
f"Unable to build template data dictionary - {type(data)}"
"is an invalid source data type"
)
return data
In data there is somehow a jinja2 template...
The only fix that i found is to restart or reload app, then letter will send fine. But another letter after it will fail again.
Can anybody help with this? Please...
The text was updated successfully, but these errors were encountered:
I've been trying to send two messages with the same body. The code for it is
When I'm trying to call invite_unregistered_to_members, the first sent works OK, but the second letter to another e-mail fails with the
ValueError: Unable to build template data dictionary - <class 'str'>is an invalid source data type
I suppose, that the error is caused by Fastmail.py -- def check_data
In data there is somehow a jinja2 template...
The only fix that i found is to restart or reload app, then letter will send fine. But another letter after it will fail again.
Can anybody help with this? Please...
The text was updated successfully, but these errors were encountered: