Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mbvistaprint
4 years agoHelpful | Level 5
Shared File Link Issues
Hi,
I'm writing to find out if anyone knows of any changes to the Drop Box service around 2/9, 2/10 that may have changed how file information is shared when using the Shared Link. For con...
mbvistaprint
4 years agoHelpful | Level 5
Hi Greg,
I don't know exactly what the response is since I'm just seeing the error returned by our code. I can share with you the call we're making though if that might help:
private bool IsImageLargerThanThreshold(string url) { RestClient tempClient = new RestClient(url); RestRequest tempRequest = new RestRequest(Method.HEAD); tempRequest.AddHeader("Accept", "*/*"); IRestResponse response = tempClient.Execute(tempRequest); if (response.StatusCode == HttpStatusCode.OK) { return response.ContentLength > _asynchThresholdInBytes; } throw new VcsValidationException("Unable to determine file size"); }
And then we are throwing the exception at the bottom. That's all I'm able to actually see in our logs unfortunately but hoping seeing what we are doing might help. I can confirm that shared links from other sharing services (ex. Files shared out of Shopify) work just fine and until last week Dropbox was also working fine. Unfortunately we have at least 2 (possibly more) of our main API customers using dropbox for their image share so they can't place print orders with us at the moment.
-Melissa
Greg-DB
Dropbox Community Moderator
4 years agombvistaprint Can you share a sample value of the "url" variable there for reference? (There are a few different types of links and options so I want to make sure I know exactly what you're using.)
Also, based on this, if you're throwing that particular VcsValidationException exception at the bottom that would indicate that the "(response.StatusCode == HttpStatusCode.OK)" check is failing; that is, you're not getting a 200 status code back. Is that correct?
- mbvistaprint4 years agoHelpful | Level 5
That is correct!
- Greg-DB4 years ago
Dropbox Community Moderator
mbvistaprint Thanks. In that case, can you share a sample? You should still be receiving a 200, though depending on the type the client may have to follow one or more redirects first (though that aspect shouldn't have changed).
- mbvistaprint4 years agoHelpful | Level 5
Alright, I found the response body and header:
{
"Errors": [
{
"ErrorMessage": "Unable to determine file size",
"PropertyName": null
}
],
"Method": "POST",
"StatusCode": 400,
"Uri": "http://prd.documents.vcs.cimpress.io:80/v1/documents/creators/url",
"Guid": "1b456a2c-5e14-46ee-a8eb-af44c535e006",
"Level": 3,
"Message": "Validation error.",
"Timestamp": "2022-02-14T18:51:12.9028064+00:00"
}Content-Type →application/jsonContent-Length →322Connection →keep-aliveDate →Mon, 14 Feb 2022 18:51:12 GMTCache-Control →no-cacheExpires →-1Pragma →no-cacheServer →Microsoft-IIS/10.0X-AspNet-Version →4.0.30319X-Powered-By →ASP.NETAccess-Control-Allow-Origin →*Vary →OriginX-Kong-Upstream-Latency →553X-Kong-Proxy-Latency →0Via →kong/0.8.3, 1.1 560ae23eb11e8a754d4876989783ad5e.cloudfront.net (CloudFront)X-Cache →Error from cloudfrontX-Amz-Cf-Pop →EWR53-P1X-Amz-Cf-Id →gvwJ9brKD4mKUm2UkbXVlLGeIdv84pbFj6G542jVCTzqv-ifMa8ZJA==
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!