You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello. When I use GraphQL to retrieve evidence (https://xray.cloud.getxray.app/doc/graphql/evidence.doc.html), it returns the information, including the download link. When I try to download it on an Ubuntu server using wget and the Xray token, I encounter the following error:
--2023-10-11 14:38:15-- https://xray.cloud.getxray.app/api/v2/attachments/a25...
Resolving xray.cloud.getxray.app (xray.cloud.getxray.app)... [IP Address]
Connecting to xray.cloud.getxray.app (xray.cloud.getxray.app)|[IP Address]|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://xray-cloud-production.s3.amazonaws.com/attachments/b8.../a25...?AWSAccessKeyId=[Access Key]&Expires=1697035126&Signature=[Signature]&response-content-disposition=attachment%3B%20filename%3DIOS-EF-3416.mp4 [following]
--2023-10-11 14:38:16-- https://xray-cloud-production.s3.amazonaws.com/attachments/b8.../a25...?AWSAccessKeyId=[Access Key]&Expires=1697035126&Signature=[Signature]&response-content-disposition=attachment%3B%20filename%3DIOS-EF-3416.mp4
Resolving xray-cloud-production.s3.amazonaws.com (xray-cloud-production.s3.amazonaws.com)... [IP Address]
Connecting to xray-cloud-production.s3.amazonaws.com (xray-cloud-production.s3.amazonaws.com)|[IP Address]|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2023-10-11 14:38:16 ERROR 400: Bad Request.
What do you suggest I do?
ok, I use curl:
curl --location 'https://xray.cloud.getxray.app/api/v2/attachments/....' --header 'Authorization: Bearer $token' --output video.mp4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.