<?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: Webhook Notifications Not Being Recieved in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233833#M12765</link>
    <description>&lt;P&gt;On point 1 I am making the changes in the correct account. I am also doing it in the folder. I don't think the post is even getting run though, which is why I'm a little confused, espsecially since it runs when i make a POST request manually. Theoretically, it should send a POST if I create or alter a file in the folder right?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 21:53:14 GMT</pubDate>
    <dc:creator>draos</dc:creator>
    <dc:date>2017-07-24T21:53:14Z</dc:date>
    <item>
      <title>Webhook Notifications Not Being Recieved</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233804#M12763</link>
      <description>&lt;P&gt;Hello, I am trying to implement webhooks, but I am encountering some issues.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-24 at 1.27.45 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/757i3127256B953F271E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-07-24 at 1.27.45 PM.png" alt="Screen Shot 2017-07-24 at 1.27.45 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-24 at 1.28.20 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/758iB2A5A0EFE172F8C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-07-24 at 1.28.20 PM.png" alt="Screen Shot 2017-07-24 at 1.28.20 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see I have 1 developer user added, and I have also managed to get my site enabled. I used Generate Access Token, so that's why I didn't&amp;nbsp;go through the OAuth process.&lt;/P&gt;&lt;PRE&gt;&amp;lt;%&lt;BR /&gt;import Foundation&lt;BR /&gt;import SwiftEngine&lt;BR /&gt;import SwiftyJSON&lt;BR /&gt;&lt;BR /&gt;let reqVal = Request.server["REQUEST_METHOD"] ?? ""&lt;BR /&gt;&lt;BR /&gt;if(reqVal == "GET")&lt;BR /&gt;{&lt;BR /&gt; let params = Request.get&lt;BR /&gt; let challengeCode = params["challenge"]!&lt;BR /&gt; Response.write(challengeCode);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt; var path = "data.txt"&lt;BR /&gt; let text = "some text"&lt;BR /&gt; try! text.write(toFile:path, atomically: false, encoding: String.Encoding.utf8 )&lt;BR /&gt; Response.write("Done");&lt;BR /&gt;}&lt;BR /&gt;%&amp;gt;&lt;/PRE&gt;&lt;P&gt;Above is my code. Upon a GET request it validates the Webhook by echoing the Dropbox challenge.&lt;/P&gt;&lt;P&gt;The else clause&amp;nbsp;handles every&amp;nbsp;other HTTP request, and thus should handle the POST notification that is supposed to be sent upon a file change; this isn't working. Essentially, upon a POST the code&amp;nbsp;will write to a file in the current local directory of my server (not dropbox) called data.txt. I used Charles to see if it was just Dropbox or if the handler wasn't working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-24 at 1.35.45 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/760iA6E06AC0B3633616/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-07-24 at 1.35.45 PM.png" alt="Screen Shot 2017-07-24 at 1.35.45 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the POST&amp;nbsp;succeeded and wrote to the file as expected. For that reason, I think I either misunderstood something when reading the docs or Dropbox isn't even making a request for some reason. Any help on this would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233804#M12763</guid>
      <dc:creator>draos</dc:creator>
      <dc:date>2019-05-29T09:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Notifications Not Being Recieved</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233832#M12764</link>
      <description>It looks like you do have your webhook URI registered successfully, and webhook notifications appear to be working properly on our side right now.&lt;BR /&gt;&lt;BR /&gt;There are a few ways for this to fail like this though. Please check:&lt;BR /&gt;- Make sure you're making changes in the account linked to the app.&lt;BR /&gt;- Since this is an app folder app, make sure you're making changes in the special app folder (at /Apps/&amp;lt;app folder name&amp;gt;).&lt;BR /&gt;- Make sure the webhook notification is following the code path you expect in your handler. (Try adding some logging at each step just to make sure.)</description>
      <pubDate>Mon, 24 Jul 2017 21:40:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233832#M12764</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-24T21:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Notifications Not Being Recieved</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233833#M12765</link>
      <description>&lt;P&gt;On point 1 I am making the changes in the correct account. I am also doing it in the folder. I don't think the post is even getting run though, which is why I'm a little confused, espsecially since it runs when i make a POST request manually. Theoretically, it should send a POST if I create or alter a file in the folder right?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 21:53:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233833#M12765</guid>
      <dc:creator>draos</dc:creator>
      <dc:date>2017-07-24T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Notifications Not Being Recieved</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233840#M12766</link>
      <description>&lt;P&gt;ok so i have verified that dropbox doesn't seem to be making any sort of HTTP request to the page. I added a log that runs if any request is made, but it isn't even being run. Does the URI need to be HTTPS or something, because I don't see any other reason it shouldn't be sending any data.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 22:32:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233840#M12766</guid>
      <dc:creator>draos</dc:creator>
      <dc:date>2017-07-24T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Notifications Not Being Recieved</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233932#M12771</link>
      <description>Yes, you should be receiving a webhook POST notification when you create or alter a file in the app folder in a linked account.&lt;BR /&gt;&lt;BR /&gt;The URI doesn't need to be HTTPS. HTTP is allowed.&lt;BR /&gt;&lt;BR /&gt;We'll have to investigate this for your app and account specifically. Please open an API ticket from the affected account so we can look into it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 25 Jul 2017 13:31:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-Notifications-Not-Being-Recieved/m-p/233932#M12771</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-25T13:31:35Z</dc:date>
    </item>
  </channel>
</rss>

