treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers"

Abe Hudson
Abe Hudson Member, Data Exchange Posts: 3

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
------------------------------

Comments

  • [Deleted User]
    [Deleted User] Posts: 152
    edited March 2023

    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
  • Abe Hudson
    Abe Hudson Member, Data Exchange Posts: 3
    edited March 2023

    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-27-2023 16:29
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------

    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
  • [Deleted User]
    [Deleted User] Posts: 152
    edited March 2023

    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-28-2023 12:00
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------

    Original Message:
    Sent: 03-27-2023 16:29
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
  • [Deleted User]
    [Deleted User] Posts: 103
    edited March 2023

    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-28-2023 12:30
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------

    Original Message:
    Sent: 03-28-2023 12:00
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-27-2023 16:29
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
  • Abe Hudson
    Abe Hudson Member, Data Exchange Posts: 3
    edited March 2023
    Understood. Please update the API-Docs "Try It" feature because it also is "hard-coded" to use the "{treelocation}"


    -------------------------------------------
    Original Message:
    Sent: 3/29/2023 10:26:00 AM
    From: Geoffrey Clemm
    Subject: RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-28-2023 12:30
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------

    Original Message:
    Sent: 03-28-2023 12:00
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-27-2023 16:29
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------
  • [Deleted User]
    [Deleted User] Posts: 152
    edited March 2023

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

    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 03-29-2023 07:38
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    Understood. Please update the API-Docs "Try It" feature because it also is "hard-coded" to use the "{treelocation}"



    Original Message:
    Sent: 3/29/2023 10:26:00 AM
    From: Geoffrey Clemm
    Subject: RE: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------

    Original Message:
    Sent: 03-28-2023 12:30
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-28-2023 12:00
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-27-2023 16:29
    From: Carly Rossi
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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

    Original Message:
    Sent: 03-20-2023 15:28
    From: Abe Hudson
    Subject: treeLocation giving "The provided value is not an integer or exceeds the limit for 32-bit integers" error

    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
    ------------------------------