Mark Davies
Posts: 0
Joined: Mon Sep 01, 2014 8:50 am

Using DreamFactory REST

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Using DreamFactory REST

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.

Mark Davies
Posts: 0
Joined: Mon Sep 01, 2014 8:50 am

Using DreamFactory REST

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

Mark Stephens
Posts: 0
Joined: Tue Sep 09, 2014 5:51 pm

Using DreamFactory REST

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

Mark Davies
Posts: 0
Joined: Mon Sep 01, 2014 8:50 am

Using DreamFactory REST

Hi Mark,

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

Return to “Issues”