Support

 View Only
  • 1.  treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-20-2023 15:29

    I'm using the "api-docs" page in my cloud environment but getting  "The provided value is not an integer or exceeds the limit for 32-bit integers" error. 

    My api ids are 18000, 10003, and 18004, so they seem like valid integers. Is there something else that needs to be done for this to work?



    ------------------------------
    Abe Hudson
    ------------------------------


  • 2.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-27-2023 16:30

    Hi Abe, 

    Are you using a PUT endpoint to access treeLocation and, if so, how is that endpoint being written specifically?



    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------



  • 3.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-28-2023 12:01

    Yes, I'm using PUT. Here is the curl command:
    curl -X PUT "https://mycompany-trial.jamacloud.com/rest/v1/items/{treeLocation}" -H "accept: application/json" -H "Content-Type: application/json" -H "jama-csrf-token: 575c5a1b-ee60-49f5-ac5e-9533ad55ed48" -d "{ \"itemIds\": [ 8004 ], \"parentItemId\": 10003, \"insertBeforeItemId\": 8005}"

    Here is the response:

    {
      "meta": {
        "status": "Bad Request",
        "timestamp": "2023-03-28T18:52:07.914+0000",
        "message": "The provided value is not an integer or exceeds the limit for 32-bit integers. Please check your input and try again."
      }
    }

    I can use those same item IDs to successfully get information from other API methods, so I believe the IDs are not the issue.



    ------------------------------
    Abe Hudson
    ------------------------------



  • 4.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-28-2023 12:30

    Thanks! I don't believe the IDs are the issue either, I was just wondering if the call was being done by using PUT /items/treelocation, or if there was a different format being used. 



    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------



  • 5.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-29-2023 07:26

    Note: There is a bug in the swagger treelocation documentation ... it says that the syntax is PUT /items/{treelocation}, when in fact it is as Carly has posted, PUT /items/treelocation  (i.e., no curly braces around treelocation).   From your example you posted, it looks like you were misled by that faulty swagger documentation.   Please let us know if it still doesn't work after you remove those curly braces.



    ------------------------------
    Geoffrey Clemm
    Jama Software
    ------------------------------



  • 6.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-29-2023 07:39
    Understood. Please update the API-Docs "Try It" feature because it also is "hard-coded" to use the "{treelocation}"





  • 7.  RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Posted 03-30-2023 16:29

    Thanks Abe, and I can confirm we're working on updating the documentation accordingly.



    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------