Ticket #596 (closed defect: fixed)
RSS & Atom failure with "Request did not return a string"
| Reported by: | ddunbar | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.8.0 |
| Version: | 0.7.12 | Keywords: | |
| Cc: | cdadhemar@… |
Description
When attempting to access the RSS and atom feeds, twistd fails with: -- Request did not return a string
Request:
<GET /atom HTTP/1.1>
Resource: <buildbot.status.web.feeds.Atom10StatusResource instance at 0x101ac8b48>
Value: --
I think the problem is that Atom10StatusResource.item is returning a unicode string. I'm not sure of the correct fix, but returning str(data) instead seems to solve the problem.
Attachments
Change History
comment:1 Changed 3 years ago by dustin
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from undecided to 0.7.12
comment:2 Changed 2 years ago by cdadhemar
- Cc cdadhemar@… added
- Status changed from closed to reopened
- Version changed from 0.7.11 to 0.7.12
- Resolution fixed deleted
- Milestone changed from 0.7.12 to undecided
Hello,
I reopen the bug : I have still this issue using Buildbot 0.7.12 (I verified that the patch mentioned above was correctly applied).
Note that in the failure report of my step their are some c++/valgrind and home made test suites output that might produce some characters not filtered by twisted's html.escape method.
However for reporting the errors in the html/waterfall view I use : from xml.sax.saxutils import escape Which works great.
I hope it helped ! Cheers, Chicha
comment:3 Changed 2 years ago by marcusl
FWIW, for 0.8 we use jinja to generate rss feeds, so this error should be fix there.
For 0.7.x series, we should encode it to utf-8 and this should be stated in the heading of the xml document.
comment:4 Changed 2 years ago by dustin
- Status changed from reopened to closed
- Resolution set to fixed
marcusl: even better -- we're just not doing 0.7.x anymore :)
Marking as fixed, since it's fixed in the new code.
comment:5 Changed 2 years ago by cdadhemar
Hi dustin,
Do you mean that this is fixed in 0.8 (the dev branch) and that the next release will be the 0.8 branch (no more 0.7.x releases) ?
This sounds like a great news :-) Thanks !
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)

cherry-picked in [4dcda7197e346f8dba56978f670cddca34cca340]