#ddynamic_api
1 messages Ā· Page 1 of 1 (latest)
š Welcome to your new thread!
ā²ļø We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
ā±ļø We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
š This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1481026071213379625
š Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! We are getting an error when we follow the link from the Stripe report runs API:
curl --location 'https://api.stripe.com/v1/reporting/report_runs/frr_1T9WfIIv5qZ8Xj8OrfUKZBeK' \
--header 'Authorization: ā¢ā¢ā¢ā¢ā¢ā¢'
{
"id": "frr_1T9WfIIv5qZ8Xj8OrfUKZBeK",
"object": "reporting.report_run",
"created": 1773173644,
"error": null,
"livemode": true,
"parameters": {
"columns": [
"category",
"description",
"net_amount",
"currency"
],
"interval_end": 1773154800,
"interval_start": 1773144000
},
"report_type": "balance.summary.1",
"result": {
"id": "file_1T9WgvIv5qZ8Xj8OqcXORIbj",
"object": "file",
"created": 1773173745,
"expires_at": 1804709745,
"filename": "frr_1T9WfIIv5qZ8Xj8OrfUKZBeK.csv",
"links": {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/file_links?file=file_1T9WgvIv5qZ8Xj8OqcXORIbj"
},
"purpose": "finance_report_run",
"size": 433,
"title": "FinanceReportRun frr_1T9WfIIv5qZ8Xj8OrfUKZBeK",
"type": "csv",
"url": "https://files.stripe.com/v1/files/file_1T9WgvIv5qZ8Xj8OqcXORIbj/contents"
},
"status": "succeeded",
"succeeded_at": 1773173745
}
it is interesting as this data pipeline has been working for years, first time seeing this error
Hi there š taking a look
thank you toby!
Hm, without sharing your secret key, can you tell me a bit more about how you're building your authorization header?
Does using -u followed by your secret key work?
https://docs.stripe.com/reports/api#:~:text=To retrieve the file contents
If this has been working fine then I kind of don't expect this to be the case, but want to make sure we cover everything.
yeah no dice:
curl --location 'https://files.stripe.com/v1/files/file_1T9WgvIv5qZ8Xj8OqcXORIbj/contents' -u 'rk_live_...'
{
"error": {
"message": "Unrecognized request URL (GET: /v1/files/file_1T9WgvIv5qZ8Xj8OqcXORIbj/contents). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
just saw on status board
I'll hang tight; thank you.