#swe_file-download-read-error
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/1333471222083878973
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- swe_api, 6 days ago, 14 messages
Hi there π was this working previously?
Yes, I hope it was
I don't remember it. But, from the doc, this should work.
Could you help me here on how to read the contents of Stripe file via API?
Hi π
I'm stepping in as my colleague has to go soon
Thank you, Snufin.
Are you able to retrieve the actual file? The request to /v1/files/:id/content is not one of the paths we list in our Files doc here: https://docs.stripe.com/api/files
curl --location 'https://api.stripe.com/v1/files/<file_token'
--header 'Authorization: Basic '
We used this API to get the file URL, and the file URL returned is not accessible
I used this API - https://docs.stripe.com/api/files/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then, followed this doc to read contents of the file - https://docs.stripe.com/file-upload#download-file-contents. But, not able to read contents of the file.
Is this information sufficient?
Hmmmm... okay so the file object you retrieve does include a URL. But that URL does not allow you to retrieve the file?
Exactly.
Okay I've dug through the internal logs for the request https://dashboard.stripe.com/test/logs/req_lwB3MX2AyAXl4O and I don't see any clear failure anywhere.
Unfortunately I think I'm going to have to ask you to write in so we can review your situation and escalate with the proper teams. I'll be sending you a DM (or a bot will) with the link.
Hello @balmy bone, we have sent you a direct message, please check it at https://discord.com/channels/@me/1333485734169935892
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Yes, that's the weird part. Stripe request logs show 2xx, but I get only access denied error
It looks like this file has to do with migrating Sources to Payment Methods. Is that what you are trying to collect?
Yes, exactly
We are trying to use this file token to convert source to payment method tokens in our end.
Instead of hitting the APIs every time.
I think it's more of a mapping of what Sources have been converted to what Payment Methods but still, I think you should have access. I recommend writing in with the link provided.
I have submitted the request to Stripe support using the link you provided
Great! It will get to my team and we can raise this issue internally from there.
Thank you. How do I followup on this ticket?
We will respond to you within 24 hours (although more likely within 1-2) and you can reply to that email.
Thank you, Snufkin. Much helpful
Sure thing! It's why we're here.