Many of the sites listed as "supported" do not work with pastebinit

Bug #1925245 reported by ShivanandVP
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pastebinit
New
Undecided
Unassigned

Bug Description

The sites that worked with `pastebinit` are:
1. dpaste.com
2. paste.ubuntu.com
3. slexy.org
4. sprunge.us

The following did not work with `pastebinit`:
1. fpaste.org
2. p.defau.lt
3. paste.debian.net
4. paste.openstack.org
5. paste.pound-python.org
6. paste.ubuntu.org.cn
7. paste2.org
8. pastebin.com

```
[user@user-desktop temp]$ pastebinit -l
Supported pastebins:
- dpaste.com
- fpaste.org
- p.defau.lt
- paste.debian.net
- paste.openstack.org
- paste.pound-python.org
- paste.ubuntu.com
- paste.ubuntu.org.cn
- paste2.org
- pastebin.com
- slexy.org
- sprunge.us
[user@user-desktop temp]$ pastebinit -i test.txt -b dpaste.com
http://dpaste.com//98YTGW298
[user@user-desktop temp]$ pastebinit -i test.txt -b fpaste.org
Failed to contact the server: <urlopen error timed out>
[user@user-desktop temp]$ pastebinit -i test.txt -b p.defau.lt
https://p.defau.lt/new.html
[user@user-desktop temp]$ pastebinit -i test.txt -b paste.debian.net
https://paste.debian.net/
[user@user-desktop temp]$ pastebinit -i test.txt -b paste.openstack.org
Traceback (most recent call last):
  File "/usr/bin/pastebinit", line 412, in <module>
    params = bytes(json.dumps(params), encoding='US-ASCII')
  File "/usr/lib/python3.9/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.9/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.9/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.9/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable
[user@user-desktop temp]$ pastebinit -i test.txt -b paste.pound-python.org
http://paste.pound-python.org/
[user@user-desktop temp]$ pastebinit -i test.txt -b paste.ubuntu.com
https://paste.ubuntu.com/p/kRcBry95mC/
[user@user-desktop temp]$ pastebinit -i test.txt -b paste.ubuntu.org.cn
https://paste.ubuntu.org.cn/
[user@user-desktop temp]$ pastebinit -i test.txt -b paste2.org
https://paste2.org/
[user@user-desktop temp]$ pastebinit -i test.txt -b pastebin.com
Failed to contact the server: HTTP Error 405: Method Not Allowed
[user@user-desktop temp]$ pastebinit -i test.txt -b slexy.org
https://slexy.org/view/s2RUjWXg0d
[user@user-desktop temp]$ pastebinit -i test.txt -b sprunge.us
http://sprunge.us/C4mU0q
[user@user-desktop temp]$
```

Revision history for this message
Bill Yikes (yik3s) wrote (last edit ):

I get different results:

paste.openstack.org works for me.

And of the sites you say are working, these are not working (at least not over tor):

paste.debian.net <= quit working very recently. Responds with "http://paste.debian.net/" (no UID)
dpaste.com <= HTTP Error 400: Bad Request
slexy.org <= Failed to contact the server: timed out

Of the ones you list as no longer working, these hosts are inside an exclusive walled garden that impose CAPTCHAs, discriminates against Tor users, disabled people, and poor people who rely on CGNAT:

6. paste.ubuntu.org.cn
7. paste2.org
8. pastebin.com

So it's better not to fix the API for the above listed three-- just remove them as options. Note as well p.defau.lt uses Amazon AWS, a highly unethical company that abuses privacy among other things. See

https://git.disroot.org/cyberMonk/liberethos_paradigm/src/branch/master/rap_sheets/amazon.md

The other three (1,3,5) should have the API updated. At least focus on the ethical free world options first.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.