Subject: | malformed JSON string |
Date: | Sat, 28 Mar 2020 14:08:51 +0100 |
To: | bug-SMS-MessageBird [...] rt.cpan.org |
From: | Nico Vos <nico [...] vossies.nu> |
Hello i am trying to send an sms via messagebird but i am getting an
error message:
malformed JSON string, neither tag, array, object, number, string or
atom, at character offset 0 (before "LWP will support htt...") at
/usr/local/share/perl/5.22.1/SMS/MessageBird/API.pm line 157.
perl --version
This is perl 5, version 22, subversion 1 (v5.22.1) built for
aarch64-linux-gnu-thread-multi
Test code
#!/usr/bin/perl
#
use SMS::Send;
use SMS::Send::MessageBird;
my $messagebird = SMS::Send->new( 'MessageBird',
_api_key => ' ... ',
_originator => 'James Bond',
);
$messagebird->send_sms(
text => 'Hi, How are you?',
to => ' ... ',
);
on another system the test script is running fine.
Regards
Nico Vos