One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
navinkumar
8 years agoExplorer | Level 4
C# to get access token
Error Message :Additional information: The remote server returned an error: (500) Internal Server Error.
i am developing an application in Asp.net mvc to integrate drobbox .
i am creating my web service to get access token from the dropbox by this following method
public string PostRequest(string postUrl, string contentType, string parameter, string access_token) { using (WebClient client = new WebClient()) { client.Headers[HttpRequestHeader.ContentType] = contentType; if (!string.IsNullOrEmpty(access_token)) client.Headers["Authorization"] = access_token; string result = client.UploadString(postUrl, parameter); return result; } }
here though i pass all the parameters i get error .
it does not throw error while checking in Insomnia client -- getting the accesstoken perfectly .
Help me to fix the issue..
Thanks & Regards,
Naveen
when i run my application i get an error message Additional information: The remote server returned an error: (500) Internal Server Error.
- I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the name and version of the platform and SDK/library you are using.
- the steps to reproduce the issue, including the rest of the relevant code snippet(s).
- the full text of the error/any output. (Feel free to include screenshots if it helps.)
- Greg-DB
Dropbox Staff
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the name and version of the platform and SDK/library you are using.
- the steps to reproduce the issue, including the rest of the relevant code snippet(s).
- the full text of the error/any output. (Feel free to include screenshots if it helps.)- navinkumarExplorer | Level 4
Thanks for your Reply ,
This is what my code used to get access token .
I am using Visual Studio version 2015.
I get access token if I pass same parameters in Insomnia , it throws no issue in running Insomnia.
Regards and Thanks ,
Naveen
- Greg-DB
Dropbox Staff
Unfortunately this screenshot doesn't offer much more information, so I can't say what the issue is. For example, I don't see what the "UploadString" method is doing.
If you can share the 'X-Dropbox-Request-Id' response header value at least, I may be able to investigate based on that.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 15 hours ago
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 or Facebook.
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!