Error when calling addPictureUrl

33 views
Skip to first unread message

Ken Cline

unread,
Feb 15, 2023, 7:36:37 PM2/15/23
to apidev
I'm making the following API call against the test system ( https://test1-api.rescuegroups.org/http/v2.json) :

{
    "token":"{{token}}",
    "tokenHash":"{{tokenHash}}",
    "objectType":"animals",
    "objectAction":"addPictureUrl",
    "values":
    [
        {
            "animalID":"{{animalID}}",
            "pictureUrl":"https://admin.afh.ong/storage/media/3/RubysRolly2.jpg"
        },
        {
            "animalID":"{{animalID}}",
        },
        {
            "animalID":"{{animalID}}",
            "pictureUrl":"https://via.placeholder.com/250"
        }
    ]
}

All three images are publicly accessible via a web browser. The first image (admin.afh.ong) returns an error, the other two images are processed correctly. 

{
    "status": "error",
    "messages": {
        "generalMessages": [],
        "recordMessages": [
            {
                "status": "error",
                "ID": "",
                "messageID": "1002",
                "messageCriticality": "error",
                "messageText": "Failed to save the record."
            },
            {
                "status": "ok",
                "ID": 92664898,
                "messageID": "1003",
                "messageCriticality": "info",
                "messageText": "Successfully saved the record."
            },
            {
                "status": "ok",
                "ID": 92664899,
                "messageID": "1003",
                "messageCriticality": "info",
                "messageText": "Successfully saved the record."
            }
        ]
    },
    "foundRows": 0,
    "data": []
}


Can you offer any insight into why the first image is not being processed?

Thanks,
KLC

Richard Saffell

unread,
Feb 16, 2023, 10:41:50 AM2/16/23
to apidev, k...@aforeverhome.net
KLC,

The admin.afh.ong support only TLS 1.3 and our server does not support TLS 1.3, so there's no way to make an SSL connection. You can add TLS 1.2 support to your server, or wait for us to support TLS 1.3 which may be within the next few months.

Richard

Reply all
Reply to author
Forward
0 new messages