<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — REST API /api/users return a 500 error]]></title>
		<link>https://forum.iredmail.org/topic20939-rest-api-apiusers-return-a-500-error.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20939.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in REST API /api/users return a 500 error.]]></description>
		<lastBuildDate>Thu, 19 Mar 2026 14:05:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91801.html#p91801</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>TypeError(&#039;Object of type %s is not JSON serializable&#039; % TypeError: Object of type date is not JSON serializable</p></blockquote></div><p>Seems mlmmjadmin has internal server error, hence the data it returns is not valid JSON string.<br />Log is not detailed enough, is it possible to give me direct ssh access with root privilege for troubleshooting? Contact us: <a href="https://www.iredmail.org/contact.html">https://www.iredmail.org/contact.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 19 Mar 2026 14:05:14 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91801.html#p91801</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91796.html#p91796</link>
			<description><![CDATA[<p>Have you seen this error? Or have an idea how to find the root cause for this?<br />Or should I open a new thread for this?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (KeX)]]></author>
			<pubDate>Thu, 19 Mar 2026 08:42:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91796.html#p91796</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91779.html#p91779</link>
			<description><![CDATA[<p>Hello,<br />yes, the error is still there. mlmmjadmin service is running.</p><p>I can see these logs:<br /></p><div class="codebox"><pre><code>Mar 13 00:14:42 mail mlmmjadmin[1512879]: [127.0.0.1] GET /api/subscriber/existing-user@mail.it/subscribed?query_all_lists=no&amp;email_only=yes 200 82 &quot;-&quot;
Mar 13 00:14:42 mail iredadmin[2913125]: [10.10.10.10] GET /iredadmin/api/user/existing-user@mail.it 500 235 &quot;-</code></pre></div><p>And som times this:<br /></p><div class="codebox"><pre><code>Mar 13 00:15:52 mail mlmmjadmin[1512879]: [127.0.0.1] GET /api/subscriber/existing-user@mail.it/subscribed?query_all_lists=no&amp;email_only=yes 200 82 &quot;-&quot;
Mar 13 00:15:52 mail iredadmin[2913125]: Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
Mar 13 00:15:52 mail iredadmin[2913125]: [10.10.10.10] GET /iredadmin/api/user/existing-user@mail.it 500 235 &quot;-&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (KeX)]]></author>
			<pubDate>Thu, 12 Mar 2026 23:19:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91779.html#p91779</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91774.html#p91774</link>
			<description><![CDATA[<p>- Do you still have this issue? Is mlmmjadmin service running?<br />- Do not hijack other&#039;s thread.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 12 Mar 2026 11:49:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91774.html#p91774</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91771.html#p91771</link>
			<description><![CDATA[<p>Hello,<br />did you had time to look at this issue?<br />Best regards,<br />KeX</p>]]></description>
			<author><![CDATA[null@example.com (KeX)]]></author>
			<pubDate>Wed, 11 Mar 2026 22:58:04 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91771.html#p91771</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91654.html#p91654</link>
			<description><![CDATA[<p>Sorry for hijacking this old thread, but I&#039;ve this exact error. When I try to get an existing user via api, an error 500 is returend. <br /></p><div class="codebox"><pre><code>Feb 14 23:13:19 mail mlmmjadmin[3261356]: [127.0.0.1] GET /api/subscriber/existing-user@mail.it/subscribed?query_all_lists=no&amp;email_only=yes 200 82 &quot;-&quot;
Feb 14 23:13:19 mail iredadmin[3262038]: Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
                                         
                                         Traceback (most recent call last):
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process
                                             return self.handle()
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle
                                             return self._delegate(fn, self.fvars, args)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate
                                             return handle_class(cls)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class
                                             return tocall(*args)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc
                                             return func(*args, **kw)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 52, in GET
                                             return api_render((True, profile))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render
                                             return _render_json(d)
                                                    ^^^^^^^^^^^^^^^
                                           File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json
                                             return json.dumps(d)
                                                    ^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps
                                             return _default_encoder.encode(obj)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode
                                             chunks = self.iterencode(o)
                                                      ^^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode
                                             return _iterencode(o, 0)
                                                    ^^^^^^^^^^^^^^^^^
                                           File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default
                                             raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %
                                         TypeError: Object of type date is not JSON serializable
Feb 14 23:13:19 mail iredadmin[3262038]: [10.20.60.79] GET /iredadmin/api/user/existing-user@mail.it 500 235 &quot;-&quot;</code></pre></div><p>When the user does not exist, I get 200 <br /></p><div class="codebox"><pre><code>{&quot;_success&quot;: false, &quot;_msg&quot;: &quot;NO_SUCH_ACCOUNT&quot;}</code></pre></div><p>I tried via curl<br /></p><div class="codebox"><pre><code>curl -v -XGET -b cookie.txt hxxps://mailserver.it/iredadmin/api/user/existing-user@mail.it</code></pre></div><p>This is running on an Ubuntu 24.04.4</p><p>Do you have an idea what the problem could be?<br />Best regards,<br />KeX</p>]]></description>
			<author><![CDATA[null@example.com (KeX)]]></author>
			<pubDate>Sat, 14 Feb 2026 22:31:10 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91654.html#p91654</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91076.html#p91076</link>
			<description><![CDATA[<p>- Your sample curl commands work for me (i replaced server url and domain name for testing).<br />- The uploaded file seems created on Windows OS? Try to convert it to utf-8 and unix format. Or write curl commands on linux machine directly.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 24 Jul 2025 01:35:14 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91076.html#p91076</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91075.html#p91075</link>
			<description><![CDATA[<p>Yes,<br />&nbsp; <br />&nbsp; &nbsp; I&#039;ve attached a file with the curls.</p><p>Regards,<br />Santi.</p>]]></description>
			<author><![CDATA[null@example.com (santiago.miguel)]]></author>
			<pubDate>Wed, 23 Jul 2025 13:17:54 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91075.html#p91075</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91068.html#p91068</link>
			<description><![CDATA[<p>Hi Santi,</p><p>Could you please give me full curl command to reproduce the issue?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 22 Jul 2025 15:25:46 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91068.html#p91068</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91067.html#p91067</link>
			<description><![CDATA[<p>Hi,<br />&nbsp; &nbsp; Yes. Version mlmmjadmin-3.4.0</p><p>root@smtp:/etc/init.d# ps -ef | grep mlmmjadm<br />mlmmj&nbsp; &nbsp; 3630678&nbsp; &nbsp; &nbsp; &nbsp;1&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid<br />mlmmj&nbsp; &nbsp; 3630682 3630678&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid<br />mlmmj&nbsp; &nbsp; 3630683 3630678&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid<br />mlmmj&nbsp; &nbsp; 3630684 3630678&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid<br />mlmmj&nbsp; &nbsp; 3630685 3630678&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid<br />mlmmj&nbsp; &nbsp; 3630686 3630678&nbsp; 0 13:34 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/bin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid</p><p>Regards,<br />Santi</p>]]></description>
			<author><![CDATA[null@example.com (santiago.miguel)]]></author>
			<pubDate>Tue, 22 Jul 2025 13:37:19 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91067.html#p91067</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91063.html#p91063</link>
			<description><![CDATA[<p>Is mlmmjadmin service running?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 20 Jul 2025 13:55:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91063.html#p91063</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91062.html#p91062</link>
			<description><![CDATA[<p>In the /var/log/syslog file, I have the following error, which might help you determine where the error might be.</p><p>2025-07-20T06:14:45.096657+00:00 smtp iredadmin: Traceback (most recent call last):#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process#012&nbsp; &nbsp; return self.handle()#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle#012&nbsp; &nbsp; return self._delegate(fn, self.fvars, args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate#012&nbsp; &nbsp; return handle_class(cls)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class#012&nbsp; &nbsp;return tocall(*args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc#012&nbsp; &nbsp; return func(*args, **kw)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 184, in GET#012&nbsp; &nbsp; return api_render((True, profiles))#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render#012&nbsp; &nbsp; return _render_json(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json#012&nbsp; &nbsp; return json.dumps(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps#012&nbsp; &nbsp; return _default_encoder.encode(obj)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode#012&nbsp; &nbsp; chunks = self.iterencode(o)#012&nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode#012&nbsp; &nbsp; return _iterencode(o, 0)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default#012&nbsp; &nbsp; raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %#012TypeError: Object of type date is not JSON serializable#012#012Traceback (most recent call last):#012 File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process#012&nbsp; &nbsp; return self.handle()#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle#012&nbsp; &nbsp; return self._delegate(fn, self.fvars, args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate#012&nbsp; &nbsp; return handle_class(cls)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class#012&nbsp; &nbsp; return tocall(*args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc#012&nbsp; &nbsp; return func(*args, **kw)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 184, in GET#012 return api_render((True, profiles))#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render#012&nbsp; &nbsp; return _render_json(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json#012&nbsp; &nbsp; return json.dumps(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps#012&nbsp; &nbsp; return _default_encoder.encode(obj)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode#012&nbsp; &nbsp; chunks = self.iterencode(o)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode#012&nbsp; &nbsp; return _iterencode(o, 0)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default#012&nbsp; &nbsp; raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %#012TypeError: Object of type date is not JSON serializable#012#012Traceback (most recent call last):#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process#012 return self.handle()#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle#012&nbsp; &nbsp; return self._delegate(fn, self.fvars, args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate#012&nbsp; return handle_class(cls)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class#012&nbsp; &nbsp; return tocall(*args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc#012&nbsp; &nbsp; return func(*args, **kw)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 184, in GET#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render#012&nbsp; &nbsp;return _render_json(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json#012&nbsp; &nbsp; return json.dumps(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps#012&nbsp; &nbsp; return _default_encoder.encode(obj)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode#012&nbsp; &nbsp; chunks = self.iterencode(o)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode#012&nbsp; &nbsp; return _iterencode(o, 0)#012&nbsp; &nbsp; &nbsp; &nbsp; ^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default#012&nbsp; &nbsp; raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %#012TypeError: Object of type date isnot JSON serializable#012#012Traceback (most recent call last):#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 277, in process#012&nbsp; &nbsp; return self.handle()#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 268, in handle#012&nbsp; &nbsp; return self._delegate(fn, self.fvars, args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 510, in _delegate#012&nbsp; &nbsp; return handle_class(cls)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/web/application.py&quot;, line 488, in handle_class#012&nbsp; &nbsp; return tocall(*args)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/libs/sqllib/decorators.py&quot;, line 152, in proxyfunc#012&nbsp; &nbsp; return func(*args, **kw)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/sql/api_user.py&quot;, line 184, in GET#012&nbsp; &nbsp; disabled_only = (&#039;disabled_only&#039; in form)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 67, in api_render#012&nbsp; &nbsp; return _render_json(d)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^#012&nbsp; File &quot;/opt/www/iRedAdmin-Pro-SQL-5.7.1/controllers/utils.py&quot;, line 34, in _render_json#012&nbsp; &nbsp; return json.dumps(d)#012&nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/__init__.py&quot;, line 378, in dumps#012&nbsp; return _default_encoder.encode(obj)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 298, in encode#012&nbsp; &nbsp; chunks = self.iterencode(o)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 379, in iterencode#012&nbsp; &nbsp; return _iterencode(o, 0)#012&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^#012&nbsp; File &quot;/usr/lib/python3/dist-packages/simplejson/encoder.py&quot;, line 274, in default#012&nbsp; &nbsp; raise TypeError(&#039;Object of type %s is not JSON serializable&#039; %#012TypeError: Object of type date is not JSON serializable#012</p><p>Regards,<br />Santi.</p>]]></description>
			<author><![CDATA[null@example.com (santiago.miguel)]]></author>
			<pubDate>Sun, 20 Jul 2025 06:20:17 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91062.html#p91062</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91057.html#p91057</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Could you share the code so that i can reproduce the issue?</p></blockquote></div><p>Yes it&#039;s a simple call with curl I&#039;ve attached the image with the curl.</p><p>at /tmp/cookie.txt I&#039;ve got the authentication token.</p><p>Regards,<br />Santi.</p>]]></description>
			<author><![CDATA[null@example.com (santiago.miguel)]]></author>
			<pubDate>Fri, 18 Jul 2025 05:31:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91057.html#p91057</guid>
		</item>
		<item>
			<title><![CDATA[Re: REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91054.html#p91054</link>
			<description><![CDATA[<p>Could you share the code so that i can reproduce the issue?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 18 Jul 2025 01:40:33 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91054.html#p91054</guid>
		</item>
		<item>
			<title><![CDATA[REST API /api/users return a 500 error]]></title>
			<link>https://forum.iredmail.org/post91049.html#p91049</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): <br />- Deployed with iRedMail Easy or the downloadable installer?<br />- Linux/BSD distribution name and version: <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />- Web server (Apache or Nginx):<br />- Manage mail accounts with iRedAdmin-Pro?<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />iRedMail version: 1.7.4<br />Downloaded installation<br />Linux: Ubuntu 24.04.1 LTS<br />Store mail: MySQL<br />Web Server: Nginx<br />I&#039;ve got iRedAdmin-Pro</p><p>An error produced on practically all domains from api with route /api/users/&lt;domain&gt;</p><p>&nbsp; &nbsp; &#039;http_code&#039; =&gt; 500,<br />&nbsp; &nbsp; &#039;Curl_return&#039; =&gt; &#039;internal server error&#039;</p><p>When we call the API to obtain the aliases it works fine, only the call to users doesn&#039;t work. Could you help us to find where could be the error?</p><p>Regards.</p>]]></description>
			<author><![CDATA[null@example.com (santiago.miguel)]]></author>
			<pubDate>Thu, 17 Jul 2025 07:42:16 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91049.html#p91049</guid>
		</item>
	</channel>
</rss>
