PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:46 PM

Issue with Updating a Request (PATCH) in Xano – “Value is not a valid integer”

  • /attachments/1297116410354335766/1297116411281543229/image.png

    totheMoon_Jay

    1 month ago

    Hi everyone,

    I’m working on a project and having trouble with updating a request using a PATCH endpoint in Xano. Here’s the situation:

    Context:
    - I’m using a PATCH endpoint in Xano to update a request (task).

    - The request_id is passed as an integer from Toddle to identify the task that needs to be updated.

    - Despite passing request_id as an number in Toddle, I’m receiving the following error from Xano:
    ERROR_CODE_INPUT_ERROR: “Value is not a valid integer, related to the request_id.

    What I’ve tried:

    - I’ve even converted the variable (taskID) with the number formula to make sure is an integer in Toddle before sending it to Xano.

    - I’ve ensured that the request_id field in Xano is set to integer.


    Do hyou have any suggestion ?

    Thanks in advance for any help or insights!
    image.png
    image.png
    image.png
  • needtheanswers

    1 month ago

    do you send everything in the body?
  • needtheanswers

    1 month ago

    I would try to send the requests_id in the header in the Queries and see if that works
  • Sean

    1 month ago

    Try checking the call sent to Xano using the request history. Does it show the inputs as a number?

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.