I get this error when I want to mark email as read

Hello Everyone,

This seems to be a python error, It’s a fresh install with docker, any assistance will be appreciated.

Please note I am very new to erpnext.

App Versions

{
	"erpnext": "14.18.1",
	"frappe": "14.26.4"
}

Route

List/Communication/Inbox/Reginald Gouws

Trackeback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1607, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/email/inbox.py", line 56, in create_email_flag_queue
    uid, seen_status, email_account = frappe.db.get_value(
  File "apps/frappe/frappe/database/database.py", line 496, in get_value
    result = self.get_values(
  File "apps/frappe/frappe/database/database.py", line 593, in get_values
    out = self._get_values_from_table(
  File "apps/frappe/frappe/database/database.py", line 810, in _get_values_from_table
    query = frappe.qb.engine.get_query(
  File "apps/frappe/frappe/database/query.py", line 516, in get_query
    fields = self.set_fields(kwargs.get("field_objects") or fields, **kwargs)
  File "apps/frappe/frappe/database/query.py", line 463, in set_fields
    function_objects += self.function_objects_from_list(fields=fields)
  File "apps/frappe/frappe/database/query.py", line 423, in function_objects_from_list
    return [self.get_function_object(function) for function in functions]
  File "apps/frappe/frappe/database/query.py", line 423, in <listcomp>
    return [self.get_function_object(function) for function in functions]
  File "apps/frappe/frappe/database/query.py", line 391, in get_function_object
    if _operator in initial_fields:
TypeError: argument of type 'int' is not iterable

Request Data

{
	"type": "POST",
	"args": {
		"names": "[\"1563cb05d7\"]",
		"action": "Read",
		"flag": "(\\SEEN)"
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.email.inbox.create_email_flag_queue"
}

Response Data

{
	"exception": "TypeError: argument of type 'int' is not iterable"
}

Hi,
Based on the error traceback, it seems like there’s a bug in the frappe.email.inbox.create_email_flag_queue method that is causing the TypeError. It’s possible that this is a known issue that has been fixed in a newer version of ERPNext or Frappe.

You can try updating your ERPNext and Frappe to the latest version:

bench update

Hope this will help you out.

Thank you.

Thank you for the response, how do I do it with docker ? I used the guide to install erpnext and I don’t know docker.

Best Regards

Update in docker is done this way: frappe_docker/setup-options.md at main · frappe/frappe_docker · GitHub

I am not familiar with the docker stuff so I now installed it just by it self and I still get the error:
Any advice

App Versions

{
	"erpnext": "14.19.0",
	"frappe": "14.30.0",
	"hrms": "15.0.0-dev"
}

Route

Form/Communication/2eee64b41f

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1607, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/email/inbox.py", line 56, in create_email_flag_queue
    uid, seen_status, email_account = frappe.db.get_value(
  File "apps/frappe/frappe/database/database.py", line 496, in get_value
    result = self.get_values(
  File "apps/frappe/frappe/database/database.py", line 593, in get_values
    out = self._get_values_from_table(
  File "apps/frappe/frappe/database/database.py", line 810, in _get_values_from_table
    query = frappe.qb.engine.get_query(
  File "apps/frappe/frappe/database/query.py", line 516, in get_query
    fields = self.set_fields(kwargs.get("field_objects") or fields, **kwargs)
  File "apps/frappe/frappe/database/query.py", line 463, in set_fields
    function_objects += self.function_objects_from_list(fields=fields)
  File "apps/frappe/frappe/database/query.py", line 423, in function_objects_from_list
    return [self.get_function_object(function) for function in functions]
  File "apps/frappe/frappe/database/query.py", line 423, in <listcomp>
    return [self.get_function_object(function) for function in functions]
  File "apps/frappe/frappe/database/query.py", line 391, in get_function_object
    if _operator in initial_fields:
TypeError: argument of type 'int' is not iterable

Request Data

{
	"type": "POST",
	"args": {
		"names": "[\"2eee64b41f\"]",
		"action": "Read",
		"flag": "(\\SEEN)"
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.email.inbox.create_email_flag_queue"
}

Response Data

{
	"exception": "TypeError: argument of type 'int' is not iterable"
}

Best regards

Any one have an Idea?