requestsync crashed with LPUrlError in _safe_urlopen()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-dev-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ubuntu-dev-tools
I was trying to request a sync using requestsync with python-
I edited the report, it asked if I want to send it, I answered yes, and it crashed.
ProblemType: Crash
Architecture: amd64
Date: Sat Mar 29 15:52:10 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/
InterpreterPath: /usr/bin/python2.5
Package: ubuntu-dev-tools 0.29 [modified: usr/bin/
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=de_DE.UTF-8
PythonArgs: ['/usr/
SourcePackage: ubuntu-dev-tools
Title: requestsync crashed with LPUrlError in _safe_urlopen()
Uname: Linux 2.6.24-12-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin mythtv netdev plugdev powerdev scanner vboxusers video
ERROR:
Traceback (most recent call last):
File "/usr/bin/
if post_bug(srcpkg, subscribe, mapping[status], title, report):
File "/usr/bin/
bug = Bug.New(product = product, summary = bugtitle, description = bugtext)
File "/usr/lib/
return getattr(
File "/usr/lib/
result = connection.
File "/usr/lib/
return self._safe_
File "/usr/lib/
raise Error.LPUrlErro
LPUrlError: 'An internal server error occurred. Please try again later. (url: https:/
Related branches
Changed in ubuntu-dev-tools: | |
status: | Triaged → Fix Committed |
It's likely that the required Launchpad cookie is missing. /wiki.ubuntu. com/Sponsorship Process/ ppaput. */*/cookies. txt).
I, for myself, had to create a cookie text file, containing the "lp" and "edge" cookie, using the curl method described at https:/
That won't help you with the current requestsync, because it only uses the old-style Firefox cookies (~/.mozilla/
Try changing the following line in /usr/bin/ requestsync from: os.path. expanduser( '~/.mozilla/ */*/cookies. txt'))[ 0] os.path. expanduser( '~/.mozilla/ */*/cookies. sqlite' ))[0]
cookiefile = glob.glob(
to:
cookiefile = glob.glob(
and make sure, that you're logged into launchpad.net and edge.launchpad.net (if you're member of the launchpad-beta team).
But, as I've just seen on my system, that might also not work correctly: */*/cookies. sqlite .mozilla/ firefox- 3.0..abandoned/ 4cz7eaqf. default/ cookies. sqlite .mozilla/ firefox/ 4cz7eaqf. default/ cookies. sqlite
$ ls -1 ~/.mozilla/
/home/daniel/
/home/daniel/
The first match looks like some obsolete profile, which you might not have access to easily.
I have a local branch, where requestsync tries the following globs for setting the required cookie file: */*/cookies. sqlite */*/cookies. txt
1. ~/.lpcookie
2. ~/.mozilla/
3. ~/.mozilla/