Skip to Content

Mock Server Configuration problem

Dear All,

I'm trying to configure Mock server using "Step 27: Mock Server Configuration" documentation. When I run my project in webide then I get below errors. I didn't implement controller logic yet but just wants to display my first root view with mock data.

Why I am seeing $count and $skip queries failing? Why I am seeing those queries when I run the app with mock data?

image-14.png (141.2 kB)
image-14.png (141.2 kB)
image-15.png (135.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 10 at 12:58 PM

    Are you starting the application with mockServer.html in the "webIDE", because I just tested one of my own Mock servers and there is no GET request involved? The json files loaded and the mock data is read from there.

    Note that the request in your console log is for WorklistSet but in the project folders you only have Worklist.json.

    So even if mock application run configuration used there is no file WorklistSet.json

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08 at 02:30 PM

    Could you copy the content of the mockServer.html, as some of the namespaces destinations have to be adjusted compared to the original index.html?

    Such as:

    data-sap-ui-resourceroots='{"projectname": "../"}

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      The connection between routes and targets are the name attribute, therefore "targets.Worklist" should be "targets.default" or vice versa. Check out the Routing and Navigation.

      The solution to the original question is the rename of the file is it not? If yes then mark that answer as accepted, and ask different problem in a new question. This helps the community to find solutions easier. If you put the URL of the new question in this question as a comment I am going to have a look.