Xray- json return empty array - No jira creation - jira-plugin

I've created my client_id and secret on Jira and can get a proper Bearer token to communicate to Xray
I've got a return 200 code, but Nothing is created in Jira; why?
Can someone indicate to me what I've missed out
(was able to import the robot test but not JSON, as I would like to integrate Gatling result in Xray)
POST https://xray.cloud.getxray.app/api/v2/import/execution/
{
"testExecutionKey": "DP-12284",
"info" : {
"summary" : "Execution of automated tests for release v1.3",
"description" : "This execution is automatically created when importing execution results from an external source",
"version" : "v1.3",
"user" : "admin",
"revision" : "1.0.42134",
"startDate" : "2014-08-30T11:47:35+01:00",
"finishDate" : "2014-08-30T11:53:00+01:00",
"testPlanKey" : "DP-12272",
"testEnvironments": ["iOS", "Android"]
},
"tests" : [
{
"testKey" : "DP-12271",
"start" : "2014-08-30T11:47:35+01:00",
"finish" : "2014-08-30T11:50:56+01:00",
"comment" : "Successful execution",
"status" : "PASSED"
}
]
}xray.png
enter image description here
enter image description here
doc read: https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST+v2#ImportExecutionResultsRESTv2-XrayJSONresults

Related

B2B SAP Spartacus not able to add to cart 4.3 version

B2B add to cart not able to add product. same issue in the demo site
Request URL: https://spartacus-demo.eastus.cloudapp.azure.com:8443/occ/v2/powertools-spa/users/anonymous/carts/a5bc363b-ee18-4edc-8673-0e7b0e7eef37/entries?lang=en&curr=USD
{
"errors" : [ {
"message" : "It's not allowed to execute this call from the current channel",
"type" : "AccessDeniedError"
} ]
}
please advise

Jira API returned Gitlab issue link -> extract more data about the Gitlab issue

When using the Jira API to return issues from a project, there is a JSON field called "customfield_12900" that contains a Gitlab issue link. I presume this is because we have Jira integration with Gitlab. However, the link is not in a valid format to use the Gitlab API to extract data from it.
An example of a URL can be "https://gitlab.gildeskagerak.com/ram/ram-platform/main/-/issues/65
My question is: how can I take the given Gitlab URL and extract data about the given issue? In this case, with ID 65.
Query the Gitlab API with the repository name and go from there
curl "https://gitlab.foo.bar/api/v4/projects/?private_token=xxxxx&search=ram-platform"
and you should get something like
[
{
"path_with_namespace" : "ram/ram-platform",
"web_url" : "https://gitlab.foo.bar/ram/ram-platform",
"path" : "ram-platform",
"service_desk_address" : null,
"operations_access_level" : "enabled",
"issues_enabled" : true,
"readme_url" : null,
"shared_with_groups" : [],
"namespace" : {
"id" : 433,
"kind" : "group",
"name" : "ram-platform",
"full_path" : "ram-platform",
"avatar_url" : null,
"web_url" : "https://gitlab.foo.bar/groups/ram-platform",
"parent_id" : null,
"path" : "ram-platform"
},
...
]
Get your ID from there.

opentok - archiving to AWS folder fails

I simply call the startArchive / stopArchive methods opentok.
Then I check the AWS folder to see if the files are successfully recorded.
However, for some cases, the JSON created for the archive is not complete, and there is no video file saved at all.
Any idea how to pinpoint the reason for this issue?
Example JSON - a successful one;
"createdAt" : 1494502861651,
"files" : [
{
"connectionData" : "",
"filename" : "xxxx.webm",
"size" : 204288,
"startTimeOffset" : 571,
"stopTimeOffset" : 15469,
"streamId" : "xxxxx-5944-43cd-85ff-1904a54e04ca",
"videoType" : "camera"
}
],
"id" : "1xxxx1-3c75-48dc-b2e5-19714b911967",
"name" : "Shamaleyte",
"sessionId" : "2_MX40NTYwMjxxxx-
MTQ5MzkwNDMzNTg3NX5XUWRxxxxBVjYrUE5DTUZwUzhCNnFwdi9-fg"
}
Example JSON - a broken one; as you can observe, there is no filename, size, and stopTimeOffset parameters in this JSON.
"createdAt" : 1494502861651,
"files" : [
{
"connectionData" : "",
"startTimeOffset" : 571,
"streamId" : "xxxxx-5944-43cd-85ff-1904a54e04ca",
"videoType" : "camera"
}
],
"id" : "1xxxx1-3c75-48dc-b2e5-19714b911967",
"name" : "Shamaleyte",
"sessionId" : "2_MX40NTYwMjxxxx-
MTQ5MzkwNDMzNTg3NX5XUWRxxxxBVjYrUE5DTUZwUzhCNnFwdi9-fg"
}
So it seems like that the stopArchiving somehow fails to upload the webm file because of a reason. How could I debug it?
PS : I checked the opentok UI in order to see the status of the archiving and it says "uploaded" but the weird thing is that the details are as the following;
Length Size
00:00:00 0.00MB
Why so?
This looks identical to a known issue in Opentok platform that should be fixed on our next release, currently just about to be deployed. This should not reproduce once TB next deployment is complete.

Sony Camera API - Content URL get request 500, malformed URL?

With the latest Sony Camera API, I'm able to get a list of the contents on the memory card. When I'm trying to download the images using a GET request, I'm getting a 500 error without any descriptive error messages.
I believe there might be something wrong with the URL I'm using for the get request.
This is the first result part of the JSON response from getContentList
{ "id" : 12, "result" : [
[
{
"isPlayable" : "false",
"content" : {
"thumbnailUrl" : "http:\/\/192.168.122.1:8080\/contentstransfer\/thumb\/index%3A%2F%2F1000%2F00000001-default%2F00000044-00000AF2_68_1_1000",
"original" : [
{
"stillObject" : "raw",
"url" : "http:\/\/192.168.122.1:8080\/contentstransfer\/orgraw\/index%3A%2F%2F1000%2F00000001-default%2F00000044-00000AF2_68_1_1000",
"fileName" : "_DSC7790.ARW"
}
],
"smallUrl" : "http:\/\/192.168.122.1:8080\/contentstransfer\/vga\/index%3A%2F%2F1000%2F00000001-default%2F00000044-00000AF2_68_1_1000",
"largeUrl" : "http:\/\/192.168.122.1:8080\/contentstransfer\/scn\/index%3A%2F%2F1000%2F00000001-default%2F00000044-00000AF2_68_1_1000"
},
"fileNo" : "7790",
"isBrowsable" : "false",
"isProtected" : "",
"title" : "",
"contentKind" : "still",
"createdTime" : "2017-01-12T13:49:00-08:00",
"folderNo" : "100",
"uri" : "image:content?contentId=index%3A%2F%2F1000%2F00000001-default%2F00000044-00000AF2_68_1_1000"
},
The url is encoded, but when I decode it I'm getting this for the thumbnailUrl:
http://192.168.122.1:8080/contentstransfer/thumb/index://1000/00000001-default/00000043-00000AF0_67_1_1000
Of course that is giving me a 500 error, but I believe the characters after thumb must be some URL for the camera to internally parse. So instead I'm just removing the back slashes to get this:
http://192.168.122.1:8080/contentstransfer/thumb/index%3A%2F%2F1000%2F00000001-default%2F00000043-00000AF0_67_1_1000
This still also gives me a 500 error. I'm not sure how else I'm supposed to use this URL. All the API documentation and references just say do a GET request, but the URL that comes in the JSON is not working.
I can only spoke for me: I want video-data instead of thumbnail-data and I just used the url as given through their "result" JSON-Object and I got no problems. For me this looks like this:
http://192.168.122.1:8080/contentstransfer/org/index%3A%2F%2F1000%2F00000100-default%2F00000047-00000C3D_71_256_1000

google-oauth calendar returns 401 error

I tried the calendar-appengine-sample on google calendar api java sample and when I used the client_secrets.json for running in localhost it always give me back my calendar list, but when I use the client_secrets.json to be run on google app engine, it give me following error message :
ERROR: 401
{
"code" : 401,
"errors" : [ {
"domain" : "global",
"location" : "Authorization",
"locationType" : "header",
"message" : "Invalid Credentials",
"reason" : "authError"
} ],
"message" : "Invalid Credentials"
}
Before it work with the same client_secrets.json, but suddenly it doesn't work. Would anyone be so kindly tell me how to fix this problem?
thanks.
I had asked this some time back (assuming your using version 3 of the API), and here is a potential answer.
If you get a 403 error, which I did after fixing this then try this.