ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Bash Script Help needed

    IT Discussion
    2
    4
    282
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Laksh1999
      last edited by

      Hi Team,

      I am trying to download the assigned tickets in the group through bash script.When i am trying to run the script i am getting this error

      malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html><html...") at /usr/bin/json_xs line 181, <STDIN> line 1.
      

      I have tried to checked that json_xs file as well.This is found in line 181

        JSON::XS->new->decode (decode $enc, $_)
      

      Any one faced this issue before like this ?

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Can we see the part of the BASH script doing the downloading?

        L 1 Reply Last reply Reply Quote 0
        • L
          Laksh1999 @scottalanmiller
          last edited by

          @scottalanmiller sorry its internal site.so unable to see.but i can say the download is happening through API of the link

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Whatever you are downloading is an HTML file. But you are trying to parse it as JSON. That command will only work with a JSON file.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post