Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

R4J REST API - unexpected or faulty parts in response of curl commands (JSON strings)

Franz Schwarzenböck October 24, 2024

Dear community, 

I´m using the R4J REST API to read out various data from R4J via curl commands.  Unfortunately the returned JSON Strings have sometimes (in my opinion not deterministic, it seems more or less random) parts which are faulty and lead to errors in my decoding function.

Here a short example I just got. If I would expect the following snippet of a string

...,"issues":[]},{"id":9303,"position":8,...

In this case the returned snippet in this string was:

...,"issues":[]}100 25714 0 25714 0 0 59514 0 --:--:-- --:--:-- --:--:-- 60220,{"id":9303,"position":8,...

Does anybody know why this happens or what that section "100 25714 0 25714 0 0 59514 0 --:--:-- --:--:-- --:--:-- 60220" means? 
Or is it just a bug?

Im using Jira Server v9.12.8.

Thanks!
Franz

2 answers

0 votes
Angelica Salazar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2024 edited

Hi @Franz Schwarzenböck

I'm Angelica from Easesolutions, vendor of R4J app. If you haven't done so already, I would recommend creating a ticket at our service desk portal, so our friendly support team can help you.

Information on what you're trying to achieve with your code, your app version, and also a copy of your script(s) could help the team analyze the problem for you.

Best regards,
Angelica

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2024

HI @Franz Schwarzenböck 

It would be useful for community members to also have the API call you are making listed.

They would have a reference then where tool look, which API option are used?

Please provide some more detail, now its looking at this are results, but where from is unclear.

Franz Schwarzenböck October 24, 2024 edited

Hi, 

thanks for your response.
Here are some exemplary curl calls I use for this purpose and where the problem occurs:

curl -H "Authorization: Bearer <Personal-Access-Token>" -H "Content-Type: application/json" "<Server>/rest/com.easesolutions.jira.plugins.requirements/2.0/ projects/<ProjectKey>/folders/<FolderID>"

curl -H "Authorization: Bearer <Personal-Access-Token>"  "<Server>/

rest/api/2/issue/<IssueID>
curl -H "Authorization: Bearer <Personal-Access-Token>" -H "Content-Type: application/json" "<Server>/rest/com.easesolutions.jira.plugins.requirements/2.0/ projects/<ProjectKey>/folders/<FolderID>?includeFolders=false"
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2024

Hi @Franz Schwarzenböck 

As these call refer to the API of a 3rd party app, I suggest to reach their support as the output is defined by them.

It's not related to the Jira API.

Looking at the calls and expected results, it provides numbers.

But I suggest to reach out to the 3rd party support team, to get a definitive answer.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events