Not Getting Analysed Image json data. Getting 404

22 views
Skip to first unread message

Vishwajit Shinde

unread,
Mar 22, 2016, 6:29:06 AM3/22/16
to Ghiro image forensics mailing list
Hello,

If I try to fetch details of analysed image with URL, I am getting 404 response

curl -kis -F task_id=1 -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/report


I want to provide an image and get back the result directly, on the fly from Ghiro service.

Also I want to provide an web image URL for Ghiro service to get the result

1) I am hiting below command:
curl -kis -F image=@https://pbs.twimg.com/profile_images/2770462617/1da96ab817dcce3b9fb1c2594483eb9a_400x400.jpeg -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/new

Response is nothing.

2) I am hiting below command (with removal of @ symbol):
curl -kis -F image=https://pbs.twimg.com/profile_images/2770462617/1da96ab817dcce3b9fb1c2594483eb9a_400x400.jpeg -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/new

Response is 404 with some HTML code.

Has anyone encountered same issue?


Thank you,

Alessandro Tanasi

unread,
Mar 29, 2016, 4:33:50 PM3/29/16
to Vishwajit Shinde, Ghiro image forensics mailing list
Hello,
thanks for reporting your issue, we are happy to get feedback!


> If I try to fetch details of analysed image with URL, I am getting 404 response
>
> curl -kis -F task_id=1 -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/report

We tried to reproduce your issue, but on latest ghiro-0.3 it works.
So we need more information to debug your issue. Which ghiro release are you running?
The only case where Ghiro should return a 404 is if you ask for task id not existing, are you sure about that task id?

> I want to provide an image and get back the result directly, on the fly from Ghiro service.
>
> Also I want to provide an web image URL for Ghiro service to get the result
>
> 1) I am hiting below command:
> curl -kis -F image=@https://pbs.twimg.com/profile_images/2770462617/1da96ab817dcce3b9fb1c2594483eb9a_400x400.jpeg -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/new
>
> Response is nothing.
>
> 2) I am hiting below command (with removal of @ symbol):
> curl -kis -F image=https://pbs.twimg.com/profile_images/2770462617/1da96ab817dcce3b9fb1c2594483eb9a_400x400.jpeg -F api_key=5505193c-a06b-4f9a-9165-8c45a5963e00 http://192.168.0.29/api/images/new
>
> Response is 404 with some HTML code.

Both cases are a wrong API usage.
The parameter image should be a file, not a link, as stated in the documentation: http://ghiro.readthedocs.org/en/latest/usage/api.html#api-images-new

Looking forward to hear from you.

Regards,
Alessandro Tanasi (@jekil)
Reply all
Reply to author
Forward
0 new messages