Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 149
    • Merge requests 149
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !2213

Open
Created Dec 15, 2025 by Xiaowu Zhang@xiaowu.zhangDeveloper
  • Report abuse
Report abuse

Draft: fix sendMailToERP5

  • Overview 5
  • Commits 1
  • Changes 1

we got this error in python3 instance

zope-7-event.log:2025-12-15 08:27:07,493 ERROR Zope.SiteErrorLog 1765787227.49176760.3771899864679882 https://xxxxxxxx/portal_contributions/newContent
zope-7-event.log-Traceback (innermost last):
zope-7-event.log-  Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
zope-7-event.log-    yield
zope-7-event.log-  Module ZPublisher.WSGIPublisher, line 390, in publish_module
zope-7-event.log-    response = _publish(request, new_mod_info)
zope-7-event.log-  Module Products.ERP5Type.patches.WSGIPublisher, line 150, in publish
zope-7-event.log-    return _original_publish(request, module_info)
zope-7-event.log-  Module ZPublisher.WSGIPublisher, line 284, in publish
zope-7-event.log-    result = mapply(obj,
zope-7-event.log-  Module ZPublisher.mapply, line 98, in mapply
zope-7-event.log-    return debug(object, args, context)
zope-7-event.log-  Module ZPublisher.WSGIPublisher, line 68, in call_object
zope-7-event.log-    return obj(*args)
zope-7-event.log-  Module Products.ERP5Type.Utils, line 478, in wrapper
zope-7-event.log-    return wrapped(self, REQUEST, *args, **kw)
zope-7-event.log-  Module erp5.component.tool.erp5_version.ContributionTool, line 171, in newContent
zope-7-event.log-    file_object.write(data)
zope-7-event.log-TypeError: a bytes-like object is required, not 'str'
zope-7-event.log-------
Edited Dec 16, 2025 by Xiaowu Zhang
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/ingestion
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7