cancel
Showing results for 
Search instead for 
Did you mean: 

MockServer: Resource not Found

RachamallaKiran
Participant
0 Kudos

hi all,

I am practicing 'Navigation and Routing' in Demo Kit.

At step - 7 after navigating to a specific employee, getting this error

and not able to display employee details

May i know how to resolve this issue or may i know how to handle the error.

Regards,

kiran rachamalla.

0 Kudos

Hi,

In the network tab, do you see if there is a call to OData? ex: /here/goes/your/serviceUrl/....... ?

Please check Employee Controller and line 34, if you are placing the right call?

path : "/Employees(" + oArgs.employeeId + ")"; and oArgs.employeeId has a value.

Some more information would help. Can you attach network calls?

Regards,

Vinod

Accepted Solutions (1)

Accepted Solutions (1)

Hi,

Please fix the following in your employee controller code.

Line 14: oArgs = oEvent.getParameter("arguments"); // use getParameter instead of getParameters.

and line 18:

path: '/Employees(' + oArgs.employeeId + ')' // there is a mistyped attribute here oArgs.employeedId

Attached the working source code for me - as an issue in https://github.com/kiran-rachamalla/Navigarion_and_routing/issues/1

Hope it helps.

Regards,

Vinod

RachamallaKiran
Participant
0 Kudos

Hi Mr.vinod,

Thanks a lot. i will try not to make such errors in future. Actually i thought there is error in 'mockserver.js'.

Regards,

kiran rachamalla.

RachamallaKiran
Participant
0 Kudos

Hi Vinod,

Is it possible to tell any trouble shoot steps, to find the issue. so that i can find any future issues easily.

Regards,

kiran rachamalla.

0 Kudos

Hi Kiran,

Sure, happy to help, give me sometime, I will attach some docs and useful links.

Mistake happens, don't worry about it 🙂

Regards,

Vinod

Answers (2)

Answers (2)

RachamallaKiran
Participant
0 Kudos

hi Mr.Vinod,

Here is the Git link , you can just import the project.

Regards,

kiran rachamalla.

RachamallaKiran
Participant
0 Kudos

Hi Mr.vinod,

Here is the attachment of network call preview.

if any more info please let me know.

yes i checked in debugging in Employee.controller.js

path : "/Employees(" + oArgs.employeeId + ")"; and oArgs.employeeId has a value.

this worked as expected .

Regards,

kiran rachamalla.

0 Kudos

Hi,

Can you zip and share your project source (its sample right)? I don't have sufficient info to analyze.

I don't see sufficient information in the network screen shot. From what I see, its placing a OData request (not on mock server) and since you don't have the OData you are getting 404 (not found).

Regards,

Vinod