Page 1 of 1

404 Status not Found Issue

Posted: Wed Jun 04, 2014 11:50 pm
by James Skip Gilleland

I have an API that when using I am getting the following in the "Response" after I test. Here is the API info

http://www.ivolleytech.com/api/getpla...

Parameter "userid=18512"

Here is the response....

{
"status":"404 Not Found",
"url":"http://www.ivolleytech.com/api/getpla...",
"response":{
"status":"1",
"message":[
{
"id":"6",
"title":"Hitting Videos",
"total_videos":"1"
},
{
"id":"7",
"title":"Drill Videos",
"total_videos":"0"
},
{
"id":"47",
"title":"cameron to watch",
"total_videos":"3"
},
{
"id":"55",
"title":"Offense-Middle",
"total_videos":"2"
},
{
"id":"56",
"title":"cover",
"total_videos":"1"
},
{
"id":"57",
"title":"Base to Read",
"total_videos":"1"
},
{
"id":"60",
"title":"Defense",
"total_videos":"0"
}
]
}
}

This is the response when you put this into the browser....http://www.ivolleytech.com/api/getpla...

{"status":"1","message":[{"id":"6","title":"Hitting Videos","total_videos":"1"},{"id":"7","title":"Drill Videos","total_videos":"0"},{"id":"47","title":"cameron to watch","total_videos":"3"},{"id":"55","title":"Offense-Middle","total_videos":"2"},{"id":"56","title":"cover","total_videos":"1"},{"id":"57","title":"Base to Read","total_videos":"1"},{"id":"60","title":"Defense","total_videos":"0"}]}


404 Status not Found Issue

Posted: Thu Jun 05, 2014 1:40 am
by Yurii Orishchuk

Hi James.

I've tested your service.

And found following result:

http://prntscr.com/3prt0n/direct

So your external HTTP handler returns this 404 http status in both cases(when testing directly in browser with URL and in Appery.io service).

So you should contact provider for this service and ask about this problem.

Also you can ignore this error in Appery.io and use "Complete" event handler to handle the result.

Regards.


404 Status not Found Issue

Posted: Thu Jun 05, 2014 2:00 am
by James Skip Gilleland

So I don't have anything fixed? I can use it the way it is?


404 Status not Found Issue

Posted: Thu Jun 05, 2014 2:26 am
by Yurii Orishchuk

James.

Yes, Appery.io platform allows you to use this HTTP handler even when it returns 404 error.

Just add "complete" event handler to your service datasource and fill it with following code: http://prntscr.com/3ps5qk/direct

precode

var response = jqXHR.responseText;

var responseObject = JSON.parse(response);

//Here you can use "responseObject" object in accordance with your need.
console.log(responseObject);

/code/pre

Regards.


404 Status not Found Issue

Posted: Thu Jun 05, 2014 1:47 pm
by James Skip Gilleland

any other ideas how to get by the Status? The developer doesn't know what the issue is. I am new to developing and like the feature of Appery that will create a sample response.

Thanks


404 Status not Found Issue

Posted: Thu Jun 05, 2014 2:42 pm
by Maryna Brodina

Hello James!

Have you tried suggestion from Yurii?


404 Status not Found Issue

Posted: Thu Jun 05, 2014 2:49 pm
by James Skip Gilleland

I haven't because I don't understand where to do that! :-(


404 Status not Found Issue

Posted: Thu Jun 05, 2014 3:10 pm
by James Skip Gilleland

here is what I have done...I don't know where to go from here Image


404 Status not Found Issue

Posted: Thu Jun 05, 2014 6:48 pm
by Alena Prykhodko

Hello,

Test your app in browser on Preview, open Developer tools (F12) and check errors in console when you execute this Service.