<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 405 method not allowed in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/473937#M24071</link>
    <description>&lt;P&gt;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:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include the access token&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 27 Nov 2020 16:32:56 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-11-27T16:32:56Z</dc:date>
    <item>
      <title>405 method not allowed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/473626#M24052</link>
      <description>&lt;P&gt;I built file uploading application on c# using dropbox client, installed multiple devices and all working properly except one.&amp;nbsp; That one's error was:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://system.net/" target="_blank" rel="noopener noreferrer"&gt;System.Net&lt;/A&gt;&lt;SPAN&gt;.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://system.net/" target="_blank" rel="noopener noreferrer"&gt;System.Net&lt;/A&gt;&lt;SPAN&gt;.WebException: The remote server returned an error: (405) Method Not Allowed...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there might be Router block? or any suggestions?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;How do i solve?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 14:58:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/473626#M24052</guid>
      <dc:creator>DWade3</dc:creator>
      <dc:date>2020-11-26T14:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: 405 method not allowed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/473937#M24071</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include the access token&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 27 Nov 2020 16:32:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/473937#M24071</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-27T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: 405 method not allowed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474096#M24081</link>
      <description>&lt;P&gt;The library is Dropbox.API (Official Dropbox .Net v2 SDK, Runtime version: v4.0.30319).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Init code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var httpClient = new HttpClient(new WebRequestHandler { ReadWriteTimeout = 10 * 1000 })
            {
                Timeout = TimeSpan.FromMinutes(120)                
            };

            try
            {
                var config = new DropboxClientConfig("Smart Kontor")
                {
                    HttpClient = httpClient
                };

                client = new DropboxClient(strAccessToken, config);
            }
            catch (HttpException ex)
            {
                MessageBox.Show("Exception reported from RPC layer");
                MessageBox.Show("    Status code: " + ex.StatusCode);
                MessageBox.Show("    Message    : " + ex.Message);
            }&lt;/PRE&gt;&lt;P&gt;Uploading code:&lt;/P&gt;&lt;PRE&gt;try
            {
                var fileContent = File.ReadAllBytes(source_filepath);

                using (var stream = new MemoryStream(fileContent))
                {
                    file_size = (double)stream.Length;
                    int numChunks = (int)Math.Ceiling(file_size / chunkSize);

                    progressBarControl1.Properties.Maximum = numChunks;

                    byte[] buffer = new byte[chunkSize];
                    string sessionId = null;

                    for (var idx = 0; idx &amp;lt; numChunks; idx++)
                    {
                        var byteRead = stream.Read(buffer, 0, chunkSize);
                        
                        using (MemoryStream memStream = new MemoryStream(buffer, 0, byteRead))
                        {
                            if (idx == 0)
                            {
                                var result = await client.Files.UploadSessionStartAsync(body: memStream);
                                sessionId = result.SessionId;
                            }

                            else
                            {
                                UploadSessionCursor cursor = new UploadSessionCursor(sessionId, (ulong)(chunkSize * idx));

                                if (idx == numChunks - 1)
                                {
                                    await client.Files.UploadSessionFinishAsync(cursor, new CommitInfo(folder + "/" + fileName), memStream);
                                }
                                else
                                {
                                    await client.Files.UploadSessionAppendV2Async(cursor, body: memStream);
                                }
                            }
                        }

                        progressBarControl1.PerformStep();
                    }
                }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 06:41:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474096#M24081</guid>
      <dc:creator>DWade3</dc:creator>
      <dc:date>2020-11-28T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: 405 method not allowed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474485#M24089</link>
      <description>&lt;P&gt;I attached the code, please see below&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:47:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474485#M24089</guid>
      <dc:creator>DWade3</dc:creator>
      <dc:date>2020-11-30T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: 405 method not allowed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474609#M24097</link>
      <description>&lt;P&gt;You seem to be setting some long timeout values, but other than that there doesn't seem to be anything unusual here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you didn't mention which version number of the&amp;nbsp;Dropbox SDK itself you have, but I&amp;nbsp;recommend upgrading to the latest version (currently v5.5.0), if you aren't already using that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, since there's nothing clearly wrong here, and since you mentioned this only happens on one device, it seems like there's something about that device in particular that is interfering. Is there anything on that device's network connection, such as a proxy, firewall, etc. that may be interfering with the connection?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 18:15:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/405-method-not-allowed/m-p/474609#M24097</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-30T18:15:31Z</dc:date>
    </item>
  </channel>
</rss>

