Page 1 of 1

Using DreamFactory REST

Posted: Tue Sep 09, 2014 6:21 am
by Mark Davies

Hi,

I found two similar questions on the forum, but none of them actually seemed to have an answer posted and I am unsure of how they managed to fix it.

The problem is, I am using DreamFactory and created a new service in my app to make a call to my DreamFactory REST API via the AppBuilder's Request Test function on the service settings. However, when I run the test it returns with:
{
"status":"500 Internal Server Error",
"url":"https://dsp-prosoftit.cloud.dreamfact...",
"response":""
}

If I run the same query via RESTClient from Firefox I get a successful reply.

Any ideas?

Thanks in advance


Using DreamFactory REST

Posted: Tue Sep 09, 2014 7:59 am
by Evgene Karachevtsev

Hello Mark,

Please check the settings of the service. Please provide us with screenshots of what you do via RESTClient from Firefox and screenshots of the settings of the service.


Using DreamFactory REST

Posted: Tue Sep 09, 2014 8:50 am
by Mark Davies

Hi Evgene,

This is what I get in RESTClient (which is what I expect):
Image

This is my setup on the service:
Image

And this is what I get from the Test option on Appery.IO:
Image

I am not passing one of the header parameters, but that is intentional here - it needs to tell me that I am missing it (as seen with RESTClient) - I expected to see the same on Appery.io


Using DreamFactory REST

Posted: Tue Sep 09, 2014 5:51 pm
by Mark Stephens

Hey - so your original link:

https://dsp-prosoftit.cloud.dreamfact...

needs to be changed to:

https://dsp-prosoftit.cloud.dreamfact...

Then, you will no longer get no application header, and it is going to get to the session (header) part. Once you pass a session header, you just need to make sure you've given correct permissions throughout your app and everything should then be good to go.

If you have any questions: a href="mailto:mark@dreamfactory.com" rel="nofollow"mark@dreamfactory.com/a

Thanks,
Mark


Using DreamFactory REST

Posted: Wed Sep 10, 2014 4:51 am
by Mark Davies

Hi Mark,

That works great - thank you for the assistance, much appreciated.