Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Malformed JSON Error Piwigo

by kiteboywales (Initiate)
on Apr 26, 2017 at 17:48 UTC ( [id://1188987]=note: print w/replies, xml ) Need Help??


in reply to Re: Malformed JSON Error Piwigo
in thread Malformed JSON Error Piwigo

Just to be clear do you mean the script is dodgy itself or the response from the hosting provider which is Awardspace

Apologies all noob queries

Replies are listed 'Best First'.
Re^3: Malformed JSON Error Piwigo
by NetWallah (Canon) on Apr 26, 2017 at 21:37 UTC
    Both sides.

    The script you are using to fetch data from the server expects JSON back, and croaks if it does not get it.
    That part could be improved with Error/Warning detection and handling.

    The server side code that runs on the hosting service is what provides a response to a request from your clinet script.
    That should also behave itself when JSON is requested, and provide a JSON-only response.
    Apparently, it is not doing so in this case - it is sending an HTML style warning message.
    You can blame (lack of) documentation for this, and/or poor design/coding/testing.

            ...Disinformation is not as good as datinformation.               Don't document the program; program the document.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-23 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found