in reply to Re^2: failure: 400
in thread failure: 400

As a first step, stop running your programs as CGI programs. Run them from the console.

Replies are listed 'Best First'.
Re^4: failure: 400
by bigup401 (Pilgrim) on Jan 05, 2019 at 13:09 UTC

    even tho i run it in console. same error

    Argument "Key" isn't numeric in subtraction (-) at test.pl line 10. Argument "Apiauth" isn't numeric in subtraction (-) at test.pl line 10 +. Argument "Nonce" isn't numeric in subtraction (-) at test.pl line 10. Argument "Apiauth" isn't numeric in subtraction (-) at test.pl line 10 +. Argument "Signature" isn't numeric in subtraction (-) at test.pl line +10. Argument "Apiauth" isn't numeric in subtraction (-) at test.pl line 10 +. failure: 500 Press any key to continue . . .
      same error

      No, the same error would be "failure: 400" as mentioned in the title. Now you've reported "failure: 500". Different error.

      Argument "Key" isn't numeric in subtraction (-) at test.pl line 10.

      You haven't quoted your key names in the $headers hashref.

        thanks hippo. for correction. i have added quotes in my key names

        and this error seems to be fixed. Argument "Key" isn't numeric in subtraction (-) at test.pl line 10.

        now still only getting 500

Re^4: failure: 400
by bigup401 (Pilgrim) on Jan 05, 2019 at 12:50 UTC

    @Corion am running as CGI program coz am building CGI app

    cant run it from console. when its not console program

    i need to see the resluts of wat am buiding

      The idea is to avoid eating the elephant as one bite.

      Try to separate all the steps of your program into small things that are easy to debug in isolation.

      This way, you only have to deal with a single problem at a time, not the many problems that hide the real problems.

        ya i understand. tho i wanted to use the use Finance::LocalBitcoins::API module bt seems out of date. and the features i want doesn't exits

        now have to try to get access to the api directly. and have tried to pass these param using %param but still the response i get is bad format of message error 400