Teri
Posts: 0
Joined: Wed Mar 04, 2015 4:26 am

My service tests out okay but fails in my app

Hello!

I am building my first app on appery.io and I've created a database with a custom collection.

Then i created a new database service in my app for listing this information. The service tests out okay (I can see the test data) and I've mapped it to a list on a page, I've also added the Invoke service to the page, but I'm just getting the javascript alert I set up to display when there is an error with the service when I test the app.

I'm sure I must be missing something! Help?

Image Image Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

My service tests out okay but fails in my app

Hi Teri -

What error message do you get, please show it to us?

And the mapping for the list component should look like this:
Image

Teri
Posts: 0
Joined: Wed Mar 04, 2015 4:26 am

My service tests out okay but fails in my app

Hello -

I am seeing this:

code
{"code":"DBSQ002","description":"database id not specified"}
/code

I've checked the server settings and that looks okay... I'm including a screenshot.
Image
I dont see what is different about my mapping and yours except that I've named my list item. What am I missing?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

My service tests out okay but fails in my app

Could you please show the exact error in the browser console with actual request, headers and response?

Teri
Posts: 0
Joined: Wed Mar 04, 2015 4:26 am

My service tests out okay but fails in my app

Sure this is what I'm seeing

Image Image Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

My service tests out okay but fails in my app

Hi Teri,

As i can see you don't have "X-Appery-Database-Id" request header in your actual request.

Please check following things:

  1. Correct "settings service" on the list service settings tab.
    Details: http://prntscr.com/6ctwrb/direct

  2. Correct headers in your request tab of the service.
    Details: http://prntscr.com/6ctxbw/direct

    Regards.

Teri
Posts: 0
Joined: Wed Mar 04, 2015 4:26 am

My service tests out okay but fails in my app

hmmm looks like they are set as expected

Image Image

Other ideas?

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

My service tests out okay but fails in my app

Hello Teri.

1) Open Fido_settings
2) Check if the database_id parameter has value

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

My service tests out okay but fails in my app

Hello Teri
Please open before send request for your service and send us a screenshot.
Check if the headers are not overridden with new value.

Return to “Issues”