Subject: | 2Failed to decode JSON returned by http://wikid.xxxxx.com/w/ABC/xyz |
Hi,
I am writing a simple script to parse some data from wiki page through
MediaWiki::API
Code =>
=========================
use MediaWiki::API;
my $mw = MediaWiki::API->new( { api_url
=> 'http://wikid.xxxxx.com/w/ABC/xyz} ) || die "Cant create MW
object\n";
my $page = $mw->get_page({-title => 'Test'}) || die $mw->{error}->
{code} .$mw->{error}->{details} ;
# print page contents
print $page->{'*'};
=========================
Error =>
=========================
2Failed to decode JSON returned by http://wikid.xxxxx.com/w/ABC/xyz
Decoding Error:
malformed JSON string, neither array, object, number, string or atom,
at character offset 0 (before "<!DOCTYPE html PUBLI...")
at /usr/lib/perl5/site_perl/5.8.8/MediaWiki/API.pm line 398.
=========================
Details =>
=========================
MediaWiki::API version => 0.37
perl version => 5.8.8
OS => Linux x86_64 x86_64 x86_64
GNU/Linux (RHEL5)
========================
Thanks in advance.
Regards,
Abhishek
Reply Forward
Mail Delivery Subsystem <mailer-daemon@googlemail.com>
6:06 AM (8 minutes ago)
to me
Delivery to the following recipient failed permanently:
bug-MediaWiki-API@rt.cpan.org
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server
for the recipient domain rt.cpan.org by rtcpan.mx.develooper.com.
[207.171.7.216].
The error that the other server returned was:
552 xxxxx.com in multi.uribl.com: Blacklisted, see
http://lookup.uribl.com/?domain=xxxxx.com
Show quoted text
----- Original message -----
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:x-received:date:message-id:subject:from:to
:content-type;
bh=vqQMrboq2oy/RqP6akA/n+Ub6/dpdd22RtRzU1QtUtM=;
b=KSfYRl4ppgzVnhSn7dFIvhgAVVDZazzFf9Ww1U0gcBoctoeuqXzGQi+ETqhJdxqrNt
e/ZYHSelnVfukGLUWoQDf7Tfm3aOz8lwU+xeAg1ZX9qDNzxzJD7GBIGxfPpa+gBDjoLv
Pdxo4+T5AzQZdSdxVu+ln+5VM/7OtalWA/xQ1Xs8Xdgc39ZcdAtwMTVk6laifAZwLiDZ
tve9IY7ZmRGkciWedhBS2HXlTliNGeI/+qnY12IHHMerOKTQpK6HAapYGWN+fvWZAsn6
/uMlf9zW7GYebTWNOrzGLOpNjGGq1lpNPR4Upw/sD2CLyz7tvn7jexy6jz+LneU
bnXWk
ojDg==
MIME-Version: 1.0
X-Received: by 10.112.103.168 with SMTP id
fx8mr836285lbb.32.1361531169354;
Fri, 22 Feb 2013 03:06:09 -0800 (PST)
Received: by 10.114.81.65 with HTTP; Fri, 22 Feb 2013 03:06:09 -0800
(PST)
Date: Fri, 22 Feb 2013 06:06:09 -0500
Message-ID:
<CAGrUXYxwk7bvip_vXN+dnG9jshkTFzq5Ze3xiaJPkQyFzT=wrg@mail.gmail.com>
Subject: 2Failed to decode JSON returned by
http://wikid.xxxxx.com/w/ABC/xyz
From: Abhishek Kumar <abisekwins@gmail.com>
To: bug-MediaWiki-API@rt.cpan.org
Content-Type: multipart/alternative;
boundary=f46d04016a99b333fd04d64e2d24
Hi,
I am writing a simple script to parse some data from wiki page through
MediaWiki::API
*Code =>*
*=========================*
*use MediaWiki::API;*
*my $mw = MediaWiki::API->new( { api_url => '**
http://wikid.xxxxx.com/w/ABC/xyz*
<http://wikid.xxxxx.com/w/ABC/xyz>*} )
|| die "Cant create MW object\n";*
**
* my $page = $mw->get_page({-title => 'Test'}) || die $mw->{error}->
{code}
.$mw->{error}->{details} ;
# print page contents
print $page->{'*'};
=========================*
Error =>
=========================
2Failed to decode JSON returned by
http://wikid.xxxxx.com/w/ABC/xyz<http://wikid.netapp.com/w/TGB/Triage>
Decoding Error:
malformed JSON string, neither array, object, number, string or atom, at
character offset 0 (before "<!DOCTYPE html PUBLI...") at
/usr/lib/perl5/site_perl/5.8.8/MediaWiki/API.pm line 398.
=========================
Details =>
=========================
MediaWiki::API version => 0.37
perl version => 5.8.8
OS => Linux x86_64 x86_64 x86_64
GNU/Linux
(RHEL5)
========================
Thanks in advance.
Regards,
Abhishek
Reply Forward
Click here to Reply or Forward
Why this ad?Ads – Raleigh Call Center Jobs
World Class Company. Local Call Center. Full-Time. Apply Now!
www.JobsAtXerox.com/RaleighJobs
512
16% full
Using 1.7 GB of your 10.1 GB ©2013 Google - Terms & Privacy Last
account activity: 22 minutes ago
DetailsPeople (2)Mail Delivery Subsystem
mailer-daemon@googlemail.com
Show details
Ads – Why these ads?
Promotions (5)
FreeScoreOnline
Lumosity.com
Vistaprint
VM Backup Free Trial
Setup in Minutes. Easy to Use. Download it Now for Free!
PHDVirtual.com/PHD-vs-Symantec
512
Homeland Security Degree
100% Online Homeland Security Degrees. Start on Your Degree Now!
www.AMU.APUS.edu/HomelandSecurity
512
Accenture Consulting Jobs
Develop Your Potential at Accenture Careers in Management Consulting.
www.accenture.com
512
Math Teacher Degrees
Accredited Math Education Degrees Online. Flexible & Affordable!
www.WGU.edu
512
How To: Agile Test
10 Tips for Agile Software Testing. Learn Now - Get Free Whitepaper!
www.uTest.com/Agile+Test
512
Raleigh Call Center Jobs16% fullUsing 1.7 GB of your 10.1 GB ©2013
Google - Terms & Privacy Last account activity: 22 minutes
agoDetailsYou have one new message.