From: David Bremner <david@tethera.net>
To: "W. Trevor King" <wking@tremily.us>
Cc: notmuch@notmuchmail.org
Subject: Re: problems with nmbug and empty prefix (UnicodeWarning and broken pipe)
Date: Sun, 14 Feb 2016 08:22:24 -0400 [thread overview]
Message-ID: <87twlbv5vj.fsf@zancas.localnet> (raw)
In-Reply-To: <20160214063132.GD4265@odin.tremily.us>
"W. Trevor King" <wking@tremily.us> writes:
> On Sat, Feb 13, 2016 at 10:41:40PM -0400, David Bremner wrote:
>> Traceback (most recent call last):
>> File "/home/bremner/.config/scripts/nmbug.real", line 834, in <module>
>> args.func(**kwargs)
>> File "/home/bremner/.config/scripts/nmbug.real", line 324, in commit
>> status = get_status()
>> File "/home/bremner/.config/scripts/nmbug.real", line 581, in get_status
>> index = _index_tags()
>> File "/home/bremner/.config/scripts/nmbug.real", line 621, in _index_tags
>> git.stdin.write(line)
>
> This traceback is pointing at what should be a stream write, so I
> don't see how urllib is involved there at all. I guess this traceback
> ends up in the “Broken pipe” message from your original post?
yes
>
> for tag in tags:
> _LOG.debug('building a quoted path for {!r} / {!r}'.format(id, tag))
> path = 'tags/{id}/{tag}'.format(
> id=_hex_quote(string=id), tag=_hex_quote(string=tag))
> yield '{mode} {hash}\t{path}\n'.format(mode=mode, hash=hash, path=path)
>
I think the problem is not a bad tag, but a bad message-id. The last
line of output before the UnicodeWarning and the broken pipe is
building a quoted path for u'D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@\xd1\xe5\xf0\xe3\xe5\xe9-\xcf\xca' / u'unread'
this corresponds to
id:D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@Ñåðãåé-ÏÊ
The original header looks like
Message-ID: <D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@Ñåðãåé-ÏÊ>
Visually I can't see what the encoding error might be, but I guess that
doesn't matter; we should be able to handle message-ids as opaque byte
strings.
d
next prev parent reply other threads:[~2016-02-14 12:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 19:10 problems with nmbug and empty prefix David Bremner
2016-02-13 22:33 ` problems with nmbug and empty prefix (UnicodeWarning and broken pipe) W. Trevor King
2016-02-14 2:41 ` David Bremner
2016-02-14 6:31 ` W. Trevor King
2016-02-14 12:22 ` David Bremner [this message]
2016-02-14 22:33 ` W. Trevor King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twlbv5vj.fsf@zancas.localnet \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=wking@tremily.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).