Bug 888433 - [abrt] fpaste-0.3.7.1-4.fc18: decoder.py:384:raw_decode:ValueError: No JSON object could be decoded
Summary: [abrt] fpaste-0.3.7.1-4.fc18: decoder.py:384:raw_decode:ValueError: No JSON o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fpaste
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:659b0c3b2a776dfdc64d22f28fa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-18 17:16 UTC by Alexei Panov
Modified: 2013-04-30 01:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-30 01:50:17 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (15.62 KB, text/plain)
2012-12-18 17:16 UTC, Alexei Panov
no flags Details
File: core_backtrace (497 bytes, text/plain)
2012-12-18 17:16 UTC, Alexei Panov
no flags Details
File: environ (3.11 KB, text/plain)
2012-12-18 17:16 UTC, Alexei Panov
no flags Details

Description Alexei Panov 2012-12-18 17:16:03 UTC
Description of problem:
I've try paste build.log from mock. Very big log.

[alex@alex-desktop]~% fpaste /var/lib/mock/fedora-18-x86_64/result/build.log 
WARNING: your paste size (1751.6KiB) is very large and may be rejected by the server. A pastebin is NOT a file hosting service!
Uploading (1751.6KiB)...
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 414, in <module>
    main()
  File "/usr/bin/fpaste", line 385, in main
    url = paste(text, options)
  File "/usr/bin/fpaste", line 115, in paste
    response = json.loads(f.read())
  File "/usr/lib64/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Version-Release number of selected component:
fpaste-0.3.7.1-4.fc18

Additional info:
cmdline:        python /usr/bin/fpaste /var/lib/mock/fedora-18-x86_64/result/build.log
dso_list:       python-libs-2.7.3-13.fc18.x86_64
executable:     /usr/bin/fpaste
kernel:         3.6.10-5.fc18.x86_64
uid:            1000

Comment 1 Alexei Panov 2012-12-18 17:16:06 UTC
Created attachment 665631 [details]
File: backtrace

Comment 2 Alexei Panov 2012-12-18 17:16:09 UTC
Created attachment 665632 [details]
File: core_backtrace

Comment 3 Alexei Panov 2012-12-18 17:16:11 UTC
Created attachment 665633 [details]
File: environ

Comment 4 Ed Greshko 2013-04-30 00:21:03 UTC
Description of problem:
ifconfig | fpaste -d "Test"

Is all that I did.....

Version-Release number of selected component:
fpaste-0.3.7.1-8.fc18

Additional info:
cmdline:        python /usr/bin/fpaste -d Test
dso_list:       python-libs-2.7.3-13.fc18.x86_64
executable:     /usr/bin/fpaste
kernel:         3.8.9-200.fc18.x86_64
uid:            1001
ureports_counter: 1

Comment 5 Zbigniew Jędrzejewski-Szmek 2013-04-30 00:58:30 UTC
$ fpaste -n zbyszek -o --sysinfo
Gathering system info...........................Uploading (18.6KiB)...
Traceback (most recent call last):
  File "/usr/bin/fpaste", line 447, in <module>
    main()
  File "/usr/bin/fpaste", line 414, in main
    [url, short_url] = paste(text, options)
  File "/usr/bin/fpaste", line 127, in paste
    response = json.loads(f.read())
  File "/usr/lib64/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Comment 6 Ankur Sinha (FranciscoD) 2013-04-30 01:21:42 UTC
Hi,

Thanks for the bug report. Looks like somethings broken server side. I can't paste *anything* to the fedora paste instances, but pasting to sayak's instance works well enough:

[ankur@ankur-pc  fpaste-0.3.7.1(f18 %=)]$ python fpaste -U http://sites.sayakbanerjee.com/paste/ --sysinfo
Gathering system info............................Uploading (14.2KiB)...
http://sites.sayakbanerjee.com/paste/1252/36728470
[ankur@ankur-pc  fpaste-0.3.7.1(f18 %=)]$ fpaste -U http://sites.sayakbanerjee.com/paste/ --sysinfo
Gathering system info............................Uploading (14.2KiB)...
http://sites.sayakbanerjee.com/paste/1253/13672847
[ankur@ankur-pc  fpaste-0.3.7.1(f18 %=)]$ ifconfig | fpaste -U http://sites.sayakbanerjee.com/paste/
Uploading (1.4KiB)...
http://sites.sayakbanerjee.com/paste/1254/36728479
[ankur@ankur-pc  fpaste-0.3.7.1(f18 %=)]$ dmesg  | fpaste -U http://sites.sayakbanerjee.com/paste/ -d "test"
Uploading (131.7KiB)...
http://sites.sayakbanerjee.com/paste/1255/36728481
[ankur@ankur-pc  fpaste-0.3.7.1(f18 %=)]$


I'll get in touch with the infra team and see if they've changed anything. Leaving the bug open for the time being. I'll update it with more info as I get it.

Thanks,
Warm regards,
Ankur

Comment 7 Ankur Sinha (FranciscoD) 2013-04-30 01:26:51 UTC
Works with https too:

[ankur@ankur-pc  ~]$ fpaste --sysinfo -U https://paste.fedoraproject.org/
Gathering system info............................Uploading (14.2KiB)...
http://ur1.ca/dlq0b -> https://paste.fedoraproject.org/9361/67285071
[ankur@ankur-pc  ~]$

I'm going to go file a ticket with infra. Please use https for the time being, until it's fixed. 

Thanks,
Ankur

Comment 8 Kevin Fenzi 2013-04-30 01:43:28 UTC
this issue was caused my a change on the server side to always require ssl connections. ;( 

I've reverted that change for now and we will look at rolling that out in a better way soon.

Comment 9 Ankur Sinha (FranciscoD) 2013-04-30 01:50:17 UTC
Thank you for the bug report everyone. We've tested it and it works now. Closing as errata since it wasn't really an issue in the package.

Thanks,
Ankur


Note You need to log in before you can comment on or make changes to this bug.