help with a type of data

4 posts, 1 answers
  1. wilberth
    wilberth avatar
    2 posts
    Member since:
    Sep 2019

    Posted 05 Sep Link to this post

    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?


  2. Answer
    Eric R | Technical Support Engineer
    Admin
    Eric R | Technical Support Engineer avatar
    230 posts

    Posted 05 Sep Link to this post

    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
  3. wilberth
    wilberth avatar
    2 posts
    Member since:
    Sep 2019

    Posted 05 Sep in reply to Eric R | Technical Support Engineer Link to this post

    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

  4. Eric R | Technical Support Engineer
    Admin
    Eric R | Technical Support Engineer avatar
    230 posts

    Posted 05 Sep Link to this post

    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
Back to Top