in reply to 500 Not a SCALAR reference

What isn't a scalar reference? Not all of us can run custom web API-type calls to get the error. Including error messages and indications where in the code the error is occurring is something you ought to know by now.

Replies are listed 'Best First'.
Re^2: 500 Not a SCALAR reference
by bigup401 (Pilgrim) on Jan 07, 2019 at 22:10 UTC

    i have been doing some research on error i found out that You are missing the body of your request. A POST request is supposed to have the body first, and then the optional headers

      Is that the exact error message? Please copy and paste the *exact* error message into <code></code> tags within the Original Post.

      Also, where is use strict; and use warnings;? I've come to overlook posts without those pragmas present by people who should know better.

      -stevieb: Just Another Perl Monkey

        i have updated it with strict and warning also added a clear header structure. you can see the output and the error i get