This is a migrated thread and some comments may be shown as answers.

help with a type of data

3 Answers 78 Views
Windows
This is a migrated thread and some comments may be shown as answers.
wilberth
Top achievements
Rank 1
wilberth asked on 05 Sep 2019, 01:39 PM

Hello, the situation is that I am testing a controller from this application, I am working with an api, asp.net core and entity frame, the thing is that I do not connect the vue.js with the asp, so I am testing the controller from this application.

I have been trying to send the data to the controller but it gives me a data error in the "idUsuario" section =   {"errors":{"":["Error converting value \"IdUsuario\" to type 'SMAD_WEB.Modelos.UsuarioModelo.UsuarioViewModel'. Path '', line 1, position 12."]},"title":"One or more validation errors occurred.","status":400,"traceId":"80000166-0006-ff00-b63f-84710c7967bb"}

all the gesture, controller, model, and data, is in int, but at the time of sending it, it tells me that it cannot connect it

 

"IdUsuario" : 504100637,
" NomUsuario ": "wilberth",
"' EmailUsuario "' : "wil@gmail.com",
"contrasena" : "1234"
"Rol": 1 

 

In this way I send it, will it be that it is badly sent, can anyone tell me how to save it?


3 Answers, 1 is accepted

Sort by
0
Accepted
Eric R | Senior Technical Support Engineer
Telerik team
answered on 05 Sep 2019, 02:50 PM

Hi Wilberth,

Thank you for using the Fiddler Forums. However, I believe this is application specific. I recommend asking this in StackOverFlow and Tagging the question with VueJS

I hope this helps. Please let me know if you need any additional information. Thank you.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
wilberth
Top achievements
Rank 1
answered on 05 Sep 2019, 03:36 PM
hello Don Eric, my question would be, so they are well sent lod data, I don't know if he I'm sending well, say, that "userid" = 504100637, so is an int sent from the fiddler application? is that the error is not in the program, is that I think I sent the data wrong, and I have not found in itself, like sending int, a string, I am new to this

0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 05 Sep 2019, 07:35 PM

Hi Wilberth,

Ultimately, the error is derived from the Application because the HTTP Request Method is failing due to an incorrect Data Type. Even if the proper Data Type is sent, the application might have value checks in the View Model to ensure the correct Type is received.

With that said, it's important to verify what Data Type the Application expects and ensure the the expected Data Type is sent. See the JavaScript Data Types documentation for more information on Data Types.

One option might be to change the Data Type to a string. To achieve this, wrap the value in quotes n the Fiddler Composer. More information about the Composer is available Create a New Request documentation. 

I hope this helps. Please let me know if you need any additional information. Thank you for using the Fiddler Forums.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
wilberth
Top achievements
Rank 1
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
wilberth
Top achievements
Rank 1
Share this question
or