You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed a lodgeit paste bin in my local machine at the address http://localhost/lodgeit/ ( I needed to modify the source a little to make it work there). bpython wasn't able to post to it, giving me an error saying basically that localhost/xmlrpc doesn't work.
I traced the error back to the source of bpython, and it turns out that the use of urljoin is the culprit. In bpython/cli.py, the use of urljoin('http://localhost/lodgeit','/xmlrpc/') returns 'http://localhost/xmlrpc/' which doesn't work.
It now works for me after I did two changes:
In the config file, the parameter pastebin_url must end now with a trailing slash (opposite to the documentation).
I have installed a lodgeit paste bin in my local machine at the address http://localhost/lodgeit/ ( I needed to modify the source a little to make it work there). bpython wasn't able to post to it, giving me an error saying basically that localhost/xmlrpc doesn't work.
I traced the error back to the source of bpython, and it turns out that the use of urljoin is the culprit. In bpython/cli.py, the use of urljoin('http://localhost/lodgeit','/xmlrpc/') returns 'http://localhost/xmlrpc/' which doesn't work.
It now works for me after I did two changes: